>>> art_standalone: Building testing/art_standalone 0_git20241001-r0 (using abuild 3.13.0-r5) started Mon, 07 Oct 2024 20:48:19 +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/100) Installing wolfssl-jni (5.7.2-r0) (2/100) Installing bash (5.2.37-r0) Executing bash-5.2.37-r0.post-install (3/100) Installing vixl (7.0.0-r0) (4/100) Installing vixl-dev (7.0.0-r0) (5/100) Installing libffi (3.4.6-r0) (6/100) Installing xz-libs (5.6.3-r0) (7/100) Installing libxml2 (2.13.4-r0) (8/100) Installing llvm18-libs (18.1.8-r0) (9/100) Installing libxau (1.0.11-r4) (10/100) Installing libmd (1.1.0-r0) (11/100) Installing libbsd (0.12.2-r0) (12/100) Installing libxdmcp (1.1.5-r1) (13/100) Installing libxcb (1.16.1-r0) (14/100) Installing libx11 (1.8.10-r0) (15/100) Installing hwdata-pci (0.388-r0) (16/100) Installing libpciaccess (0.18.1-r0) (17/100) Installing libdrm (2.4.123-r1) (18/100) Installing libelf (0.191-r0) (19/100) Installing mesa-glapi (24.2.4-r1) (20/100) Installing libxshmfence (1.3.2-r6) (21/100) Installing mesa (24.2.4-r1) (22/100) Installing wayland-libs-server (1.23.1-r0) (23/100) Installing mesa-gbm (24.2.4-r1) (24/100) Installing wayland-libs-client (1.23.1-r0) (25/100) Installing mesa-egl (24.2.4-r1) (26/100) Installing libucontext (1.3.2-r0) (27/100) Installing libunwind (1.8.1-r0) (28/100) Installing bionic_translation (0_git20240525-r0) (29/100) Installing bionic_translation-dev (0_git20240525-r0) (30/100) Installing bsd-compat-headers (0.7.2-r6) (31/100) Installing expat (2.6.3-r0) (32/100) Installing expat-dev (2.6.3-r0) (33/100) 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. * (34/100) Installing icu-libs (74.2-r0) (35/100) Installing icu (74.2-r0) (36/100) Installing icu-dev (74.2-r0) (37/100) Installing java-common (0.5-r0) (38/100) Installing linux-headers (6.6-r0) (39/100) Installing libmd-dev (1.1.0-r0) (40/100) Installing libbsd-dev (0.12.2-r0) (41/100) Installing libcap-dev (2.70-r0) (42/100) Installing libucontext-dev (1.3.2-r0) (43/100) Installing libunwind-dev (1.8.1-r0) (44/100) Installing lz4-dev (1.10.0-r0) (45/100) Installing samurai (1.2-r5) (46/100) Installing libbz2 (1.0.8-r6) (47/100) Installing gdbm (1.24-r0) (48/100) Installing mpdecimal (4.0.0-r0) (49/100) Installing libpanelw (6.5_p20240601-r1) (50/100) Installing sqlite-libs (3.46.1-r0) (51/100) Installing python3 (3.12.7-r0) (52/100) Installing python3-pycache-pyc0 (3.12.7-r0) (53/100) Installing pyc (3.12.7-r0) (54/100) Installing meson-pyc (1.5.2-r0) (55/100) Installing python3-pyc (3.12.7-r0) (56/100) Installing meson (1.5.2-r0) (57/100) Installing libpng (1.6.44-r0) (58/100) Installing freetype (2.13.3-r0) (59/100) Installing fontconfig (2.15.0-r1) (60/100) Installing encodings (1.0.7-r1) (61/100) Installing libfontenc (1.1.8-r0) (62/100) Installing mkfontscale (1.2.3-r1) (63/100) Installing font-dejavu (2.37-r5) (64/100) Installing libxcomposite (0.4.6-r5) (65/100) Installing libxext (1.3.6-r2) (66/100) Installing libxi (1.8.2-r0) (67/100) Installing libxrender (0.9.11-r5) (68/100) Installing libxtst (1.2.5-r0) (69/100) Installing alsa-lib (1.2.12-r0) (70/100) Installing giflib (5.2.2-r0) (71/100) Installing libjpeg-turbo (3.0.4-r0) (72/100) Installing openjdk8-jre-lib (8.422.05-r0) (73/100) Installing libtasn1 (4.19.0-r2) (74/100) Installing p11-kit (0.25.5-r2) (75/100) Installing p11-kit-trust (0.25.5-r2) (76/100) Installing ca-certificates (20240705-r0) (77/100) Installing java-cacerts (1.1-r0) (78/100) Installing nspr (4.35-r4) (79/100) Installing nss (3.105-r0) (80/100) Installing krb5-conf (1.0-r2) (81/100) Installing libcom_err (1.47.1-r1) (82/100) Installing keyutils-libs (1.6.3-r3) (83/100) Installing libverto (0.3.2-r2) (84/100) Installing krb5-libs (1.21.3-r0) (85/100) Installing lcms2 (2.16-r0) (86/100) Installing pcsc-lite-libs (2.2.3-r1) (87/100) Installing liblksctp (1.0.19-r5) (88/100) Installing openjdk8-jre-base (8.422.05-r0) (89/100) Installing openjdk8-jre (8.422.05-r0) (90/100) Installing openjdk8-jdk (8.422.05-r0) (91/100) Installing openssl-dev (3.3.2-r2) (92/100) Installing valgrind-dev (3.23.0-r0) (93/100) Installing wolfssl-jni-dev (5.7.2-r0) (94/100) Installing xz (5.6.3-r0) (95/100) Installing xz-dev (5.6.3-r0) (96/100) Installing unzip (6.0-r15) (97/100) Installing zip (3.0-r13) (98/100) Installing zlib-dev (1.3.1-r2) (99/100) Installing .makedepends-art_standalone (20241007.204820) (100/100) Installing meson-vim (1.5.2-r0) Executing busybox-1.36.1-r32.trigger Executing java-common-0.5-r0.trigger Executing fontconfig-2.15.0-r1.trigger Executing mkfontscale-1.2.3-r1.trigger Executing ca-certificates-20240705-r0.trigger OK: 864 MiB in 208 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-c4d890772a4baa583ef5caea03e8a2a351871e5d.tar.gz >>> art_standalone: Fetching https://distfiles.alpinelinux.org/distfiles/edge/art_standalone-c4d890772a4baa583ef5caea03e8a2a351871e5d.tar.gz >>> art_standalone: Checking sha512sums... art_standalone-c4d890772a4baa583ef5caea03e8a2a351871e5d.tar.gz: OK >>> art_standalone: Unpacking /var/cache/distfiles/edge/art_standalone-c4d890772a4baa583ef5caea03e8a2a351871e5d.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=armv8 TARGET_CPU_VARIANT=generic TARGET_2ND_ARCH= TARGET_2ND_ARCH_VARIANT= TARGET_2ND_CPU_VARIANT= HOST_ARCH=arm64 HOST_OS=linux HOST_OS_EXTRA=Linux-6.1.90-0-lts-aarch64-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 cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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) \ | ^ host Java: core-all-hostdex (out/host/common/obj/JAVA_LIBRARIES/core-all-hostdex_intermediates/classes) 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 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\ | ^ 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/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\ | ^ Notice file: external/bouncycastle/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//framework/bouncycastle-hostdex.jar.txt 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/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 host C: liblog <= system/core/liblog/logprint.c host C: liblog <= system/core/liblog/event_tag_map.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 host C: liblog <= system/core/liblog/fake_log_device.c Import includes file: out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/import_includes host C++: libsigchain <= art/sigchainlib/sigchain.cc host C: libhost <= build/libs/host/CopyFile.c Import includes file: out/host/linux-x86/obj/EXECUTABLES/dex2oat_intermediates/import_includes 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\ | ^ 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 cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C: libcutils <= system/core/libcutils/atomic.c host C: libcutils <= system/core/libcutils/hashmap.c 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 'long 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 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" host C: libcutils <= system/core/libcutils/strdup8to16.c art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop host C: libcutils <= system/core/libcutils/record_stream.c host C: libcutils <= system/core/libcutils/process_name.c system/core/libcutils/config_utils.c: In function 'config_node': system/core/libcutils/config_utils.c:30:26: warning: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Wcalloc-transposed-args] 30 | node = calloc(sizeof(cnode), 1); | ^~~~~ system/core/libcutils/config_utils.c:30:26: note: earlier argument should specify number of elements, later size of each element host C: libcutils <= system/core/libcutils/threads.c host C: libcutils <= system/core/libcutils/sched_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/iosched_policy.c host C: libcutils <= system/core/libcutils/str_parms.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/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_loopback_client.c host C: libcutils <= system/core/libcutils/socket_local_server.c host C: libcutils <= system/core/libcutils/socket_loopback_server.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_network_client.c host C: libcutils <= system/core/libcutils/sockets.c host C: libcutils <= system/core/libcutils/ashmem-host.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/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 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++: libutils <= system/core/libutils/BasicHashtable.cpp host C++: libutils <= system/core/libutils/CallStack.cpp host C++: libutils <= system/core/libutils/FileMap.cpp cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 | ^~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libutils <= system/core/libutils/JenkinsHash.cpp host C++: libutils <= system/core/libutils/LinearTransform.cpp cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libutils <= system/core/libutils/Log.cpp cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libutils <= system/core/libutils/NativeHandle.cpp cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libutils <= system/core/libutils/Printer.cpp host C++: libutils <= system/core/libutils/ProcessCallStack.cpp cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libutils <= system/core/libutils/PropertyMap.cpp cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libutils <= system/core/libutils/RefBase.cpp cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libutils <= system/core/libutils/SharedBuffer.cpp host C++: libutils <= system/core/libutils/Static.cpp cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libutils <= system/core/libutils/StopWatch.cpp host C++: libutils <= system/core/libutils/String8.cpp cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ system/core/liblog/fake_log_device.c: In function 'showLog': system/core/liblog/fake_log_device.c:457:30: warning: argument 1 value '18446744073709551584' exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=] 457 | vec = (struct iovec*)malloc(sizeof(struct iovec)*numVecs); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/fortify/stdlib.h:23, from system/core/liblog/fake_log_device.c:24: /usr/include/stdlib.h:40:7: note: in a call to allocation function 'malloc' declared here 40 | void *malloc (size_t); | ^~~~~~ host C++: libutils <= system/core/libutils/String16.cpp cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libutils <= system/core/libutils/SystemClock.cpp cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libutils <= system/core/libutils/Threads.cpp cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libutils <= system/core/libutils/Timers.cpp host C++: libutils <= system/core/libutils/Tokenizer.cpp host C++: libutils <= system/core/libutils/Unicode.cpp cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libutils <= system/core/libutils/VectorImpl.cpp cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libutils <= system/core/libutils/misc.cpp cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libutils <= system/core/libutils/Looper.cpp cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ Import includes file: out/host/linux-x86/obj/SHARED_LIBRARIES/libart-compiler_intermediates/import_includes cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libartpalette <= art/libartpalette/system/palette_fake.cc Import includes file: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/import_includes cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ Import includes file: out/host/linux-x86/obj/SHARED_LIBRARIES/libbacktrace_intermediates/import_includes host C++: libnativebridge <= system/core/libnativebridge/native_bridge.cc host C: libunwind <= external/libunwind/src/mi/init.c cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C: libunwind <= external/libunwind/src/mi/flush_cache.c cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C: libunwind <= external/libunwind/src/mi/mempool.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/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 host C: libunwind <= external/libunwind/src/mi/dyn-register.c host C: libunwind <= external/libunwind/src/mi/map.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)); | ^~~~~~~~ host C: libunwind <= external/libunwind/src/mi/Lmap.c 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)); | ^~~~~~~~ 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/Ldyn-extract.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/Lfind_dynamic_proc_info.c host C: libunwind <= external/libunwind/src/mi/Lget_proc_info_by_ip.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 117 | lookup_next_symbol(&linked_sigaction, sigaction, "sigaction"); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 118 | lookup_next_symbol(&linked_sigprocmask, sigprocmask, "sigprocmask"); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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) { | ~~^~~~~~~ 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 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 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/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 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/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 external/libunwind/src/ptrace/_UPT_access_fpreg.c: In function '_UPT_access_fpreg': external/libunwind/src/ptrace/_UPT_access_fpreg.c:113:10: note: '#pragma message: _UPT_access_fpreg is not implemented and not currently used.' 113 | # pragma message("_UPT_access_fpreg is not implemented and not currently used.") | ^~~~~~~ host C: libunwind <= external/libunwind/src/aarch64/is_fpreg.c host C: libunwind <= external/libunwind/src/aarch64/regname.c host C: libunwind <= external/libunwind/src/aarch64/Gcreate_addr_space.c host C: libunwind <= external/libunwind/src/aarch64/Gget_proc_info.c art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' host C: libunwind <= external/libunwind/src/aarch64/Gget_save_loc.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/aarch64/Gglobal.c host C: libunwind <= external/libunwind/src/aarch64/Ginit.c host C: libunwind <= external/libunwind/src/aarch64/Ginit_local.c host C: libunwind <= external/libunwind/src/aarch64/Ginit_remote.c host C: libunwind <= external/libunwind/src/aarch64/Gregs.c host C: libunwind <= external/libunwind/src/aarch64/Gresume.c host C: libunwind <= external/libunwind/src/aarch64/Gstep.c host C: libunwind <= external/libunwind/src/aarch64/Lcreate_addr_space.c host C: libunwind <= external/libunwind/src/aarch64/Lget_proc_info.c host C: libunwind <= external/libunwind/src/aarch64/Lget_save_loc.c host C: libunwind <= external/libunwind/src/aarch64/Lglobal.c host C: libunwind <= external/libunwind/src/aarch64/Linit.c host C: libunwind <= external/libunwind/src/aarch64/Linit_local.c host C: libunwind <= external/libunwind/src/aarch64/Linit_remote.c host C: libunwind <= external/libunwind/src/aarch64/Lregs.c art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' host C: libunwind <= external/libunwind/src/aarch64/Lresume.c host C: libunwind <= external/libunwind/src/aarch64/Lstep.c host C: libunwind <= external/libunwind/src/aarch64/Gis_signal_frame.c host C: libunwind <= external/libunwind/src/aarch64/Lis_signal_frame.c host C: libunwind <= external/libunwind/src/elf64.c host C++: libsigchain <= art/sigchainlib/sigchain.cc host C++: libelffile <= art/libelffile/elf/xz_utils.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libelffile <= art/libelffile/stream/buffered_output_stream.cc host C++: libelffile <= art/libelffile/stream/file_output_stream.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libelffile <= art/libelffile/stream/output_stream.cc host C++: libelffile <= art/libelffile/stream/vector_output_stream.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libart-dexlayout <= art/dexlayout/compact_dex_writer.cc host C++: libart-dexlayout <= art/dexlayout/dexlayout.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libart-dexlayout <= art/dexlayout/dex_ir.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libart-dexlayout <= art/dexlayout/dex_ir_builder.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libart-dexlayout <= art/dexlayout/dex_verify.cc host C++: libart-dexlayout <= art/dexlayout/dex_visualize.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libart-dexlayout <= art/dexlayout/dex_writer.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libjavacore <= libcore/dalvik/src/main/native/org_apache_harmony_dalvik_NativeTestTarget.cpp cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libjavacore <= libcore/luni/src/main/native/ExecStrings.cpp cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libjavacore <= libcore/luni/src/main/native/IcuUtilities.cpp host C++: libjavacore <= libcore/luni/src/main/native/JniException.cpp cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libjavacore <= libcore/luni/src/main/native/NetworkUtilities.cpp cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libjavacore <= libcore/luni/src/main/native/Register.cpp host C++: libjavacore <= libcore/luni/src/main/native/ZipUtilities.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/android_system_OsConstants.cpp cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ In file included from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' host C++: libjavacore <= libcore/luni/src/main/native/cbigint.cpp In file included from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' host C++: libjavacore <= libcore/luni/src/main/native/java_lang_StringToReal.cpp cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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_; | ^ 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/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++: libjavacore <= libcore/luni/src/main/native/java_lang_invoke_MethodHandle.cpp cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libjavacore <= libcore/luni/src/main/native/java_util_regex_Matcher.cpp In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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 { | ^~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libjavacore <= libcore/luni/src/main/native/java_util_regex_Pattern.cpp In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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++: libjavacore <= libcore/luni/src/main/native/libcore_icu_ICU.cpp cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libjavacore <= libcore/luni/src/main/native/libcore_icu_NativeConverter.cpp 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) \ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libjavacore <= libcore/luni/src/main/native/libcore_icu_TimeZoneNames.cpp art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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) \ | ^ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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++: libjavacore <= libcore/luni/src/main/native/libcore_io_AsynchronousCloseMonitor.cpp 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) \ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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_io_Linux.cpp cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libjavacore <= libcore/luni/src/main/native/libcore_io_Memory.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) \ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 host C++: libjavacore <= libcore/luni/src/main/native/sun_misc_Unsafe.cpp cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ Import includes file: out/host/linux-x86/obj/SHARED_LIBRARIES/libopenjdk_intermediates/import_includes host C++: libjavacore <= libcore/luni/src/main/native/valueOf.cpp cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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) \ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C: libfdlibm <= external/fdlibm/k_cos.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_sin.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) \ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, 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_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) \ | ^ 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) \ | ^ host C: libfdlibm <= external/fdlibm/k_tan.c host C: libfdlibm <= external/fdlibm/e_acos.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_acosh.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_asin.c In file included from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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_visualize.cc:34: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(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) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ 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/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_atanh.c host C: libfdlibm <= external/fdlibm/e_cosh.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 { | ^~~~~~~~~~~~ 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) \ | ^ 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))))); | ^ host C: libfdlibm <= external/fdlibm/e_fmod.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 */ | ~~^~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 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)) { | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ external/fdlibm/e_asin.c:91:19: 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; | ^ host C: libfdlibm <= external/fdlibm/e_gamma.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 117 | lookup_next_symbol(&linked_sigaction, sigaction, "sigaction"); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 118 | lookup_next_symbol(&linked_sigprocmask, sigprocmask, "sigprocmask"); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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) { | ~~^~~~~~~ host C: libfdlibm <= external/fdlibm/e_gamma_r.c host C: libfdlibm <= external/fdlibm/e_hypot.c host C: libfdlibm <= external/fdlibm/e_j0.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_j1.c 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_jn.c host C: libfdlibm <= external/fdlibm/e_lgamma.c host C: libfdlibm <= external/fdlibm/e_lgamma_r.c 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) \ | ^ external/fdlibm/k_rem_pio2.c:293:24: warning: 'fq' may be used uninitialized [-Wmaybe-uninitialized] 293 | fw = fq[0]-fw; | ~~^~~ external/fdlibm/k_rem_pio2.c:171:27: note: 'fq' declared here 171 | double z,fw,f[20],fq[20],q[20]; | ^~ host C: libfdlibm <= external/fdlibm/e_log.c 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_j0.c: In function 'pzero': external/fdlibm/e_j0.c:340:14: warning: 'p' may be used uninitialized [-Wmaybe-uninitialized] 340 | r = p[0]+z*(p[1]+z*(p[2]+z*(p[3]+z*(p[4]+z*p[5])))); | ~^~~ external/fdlibm/e_j0.c:328:23: note: 'p' was declared here 328 | const double *p,*q; | ^ external/fdlibm/e_j0.c:341:21: warning: 'q' may be used uninitialized [-Wmaybe-uninitialized] 341 | s = one+z*(q[0]+z*(q[1]+z*(q[2]+z*(q[3]+z*q[4])))); | ~^~~ external/fdlibm/e_j0.c:328:26: note: 'q' was declared here 328 | const double *p,*q; | ^ host C: libfdlibm <= external/fdlibm/e_log10.c 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 struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/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++/14.2.0/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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ external/fdlibm/s_expm1.c: In function 'ieee_expm1': external/fdlibm/s_expm1.c:195:15: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 195 | if(k==1) | ^ host C: libfdlibm <= external/fdlibm/s_isnan.c external/fdlibm/s_floor.c: In function 'ieee_floor': external/fdlibm/s_floor.c:69:29: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 69 | if(j struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/functional:63, from art/dexlayout/dex_writer.h:22: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C: libfdlibm <= external/fdlibm/s_signgam.c host C: libfdlibm <= external/fdlibm/s_significand.c host C: libfdlibm <= external/fdlibm/s_sin.c external/fdlibm/s_scalbn.c: In function 'ieee_scalbn': external/fdlibm/s_scalbn.c:56:12: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 56 | if (k <= -54) | ^ external/fdlibm/s_log1p.c: In function 'ieee_log1p': external/fdlibm/s_log1p.c:154:15: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 154 | if(f==zero) if(k==0) return zero; | ^ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/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); | ^~~ host C: libfdlibm <= external/fdlibm/s_tan.c 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/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); | ^~~~~~~~ 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, std::vector*)': 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); | ^~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/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++: libopenjdkjvm <= art/openjdkjvm/OpenjdkJvm.cc host C: libwolfssljni <= external/wolfssljni/native/com_wolfssl_wolfcrypt_ECC.c host C: libwolfssljni <= external/wolfssljni/native/com_wolfssl_wolfcrypt_EccKey.c cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C: libwolfssljni <= external/wolfssljni/native/com_wolfssl_wolfcrypt_RSA.c host C: libwolfssljni <= external/wolfssljni/native/com_wolfssl_WolfSSL.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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C: libwolfssljni <= external/wolfssljni/native/com_wolfssl_WolfSSLCertManager.c host C: libwolfssljni <= external/wolfssljni/native/com_wolfssl_WolfSSLContext.c host C: libwolfssljni <= external/wolfssljni/native/com_wolfssl_WolfSSLCertificate.c host C: libwolfssljni <= external/wolfssljni/native/com_wolfssl_WolfSSLSession.c host C: libwolfssljni <= external/wolfssljni/native/com_wolfssl_WolfSSLX509StoreCtx.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 { | ^~~~~~~~ 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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ /usr/include/c++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libandroidfw <= libandroidfw/ApkAssets.cpp host C++: libandroidfw <= libandroidfw/Asset.cpp cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libandroidfw <= libandroidfw/AssetDir.cpp cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libandroidfw <= libandroidfw/AssetManager.cpp host C++: libandroidfw <= libandroidfw/AssetManager2.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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62, from art/dexlayout/dex_ir.h:24: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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/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.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 { | ^~~~~~~~ host C++: libandroidfw <= libandroidfw/AttributeResolution.cpp In file included from /usr/include/c++/14.2.0/bits/stl_construct.h:61, from /usr/include/c++/14.2.0/bits/stl_tempbuf.h:61, from /usr/include/c++/14.2.0/memory:66, from art/dexlayout/compact_dex_writer.h:22: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libandroidfw <= libandroidfw/ChunkIterator.cpp cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libandroidfw <= libandroidfw/ConfigDescription.cpp cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libandroidfw <= libandroidfw/Idmap.cpp 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); | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libandroidfw <= libandroidfw/LoadedArsc.cpp cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libandroidfw <= libandroidfw/Locale.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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/stl_tree.h:63, from /usr/include/c++/14.2.0/set:62, from art/dexlayout/dexlayout.h:29: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libandroidfw <= libandroidfw/LocaleData.cpp host C++: libandroidfw <= libandroidfw/misc.cpp cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libandroidfw <= libandroidfw/ObbFile.cpp cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libandroidfw <= libandroidfw/PosixUtils.cpp host C++: libandroidfw <= libandroidfw/ResourceTypes.cpp cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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 struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/bits/stl_construct.h:61, from /usr/include/c++/14.2.0/bits/stl_tempbuf.h:61, from /usr/include/c++/14.2.0/memory:66, from art/dexlayout/dex_ir_builder.cc:20: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libandroidfw <= libandroidfw/TypeWrappers.cpp cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libandroidfw <= libandroidfw/Util.cpp host C++: libandroidfw <= libandroidfw/ZipFileRO.cpp cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ host C++: libandroidfw <= libandroidfw/ZipUtils.cpp 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) \ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libandroidfw <= libandroidfw/androidfw_c_api.cpp cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: dalvikvm <= art/dalvikvm/dalvikvm.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/JNIHelp.cpp 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++: libnativehelper <= libnativehelper/JniConstants.cpp cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/functional:63, from art/dexlayout/dex_visualize.cc:28: /usr/include/c++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++/14.2.0/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++/14.2.0/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); | ^~~~~~~~ host C++: libnativehelper <= libnativehelper/toStringArray.cpp 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); | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libnativehelper <= libnativehelper/JniInvocation.cpp 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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libnativehelper <= libnativehelper/AsynchronousCloseMonitor.cpp host SharedLib: liblog (out/host/linux-x86/obj/lib/liblog.so) cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 | ^~~~~~~ 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 C: acp <= build/tools/acp/acp.c host StaticLib: libsigchain (out/host/linux-x86/obj/STATIC_LIBRARIES/libsigchain_intermediates/libsigchain.a) 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 | ^~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62, from art/dexlayout/dex_ir.h:24: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host StaticLib: libhost (out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/libhost.a) host C++: dex2oat <= art/dex2oat/dex2oat_options.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/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 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 | ^~~~~~~ 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 | ^~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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\ | ^ 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++: libprofile <= art/libprofile/profile/profile_compilation_info.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 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 | ^~~~~~~ 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 | ^~~~~~~ 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++: dex2oat <= art/dex2oat/dex2oat.cc 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/file.cpp 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 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 | ^~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libbase <= libbase/stringprintf.cpp cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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); | ^~~~~~~~ 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, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map: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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map: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::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/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_); | ^~~~~~~~~~~~~~~ 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 | ^~~~~~~ host C++: libbase <= libbase/strings.cpp 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 { | ^~~~~~~~ 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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ /usr/include/c++/14.2.0/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/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ /usr/include/c++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libbase <= libbase/logging.cpp cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libbase <= libbase/errors_unix.cpp 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 SharedLib: libcutils (out/host/linux-x86/obj/lib/libcutils.so) cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libziparchive <= system/core/libziparchive/zip_archive.cc host SharedLib: libutils (out/host/linux-x86/obj/lib/libutils.so) cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 | ^~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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::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/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 | ^~~~~~~ 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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) \ | ^ 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.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::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::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::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::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::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::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 '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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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.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.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_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ host SharedLib: libnativebridge (out/host/linux-x86/obj/lib/libnativebridge.so) 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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) | ~~~~~~~~~^~~~~ 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: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: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: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::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::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::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::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::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::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::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::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::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::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::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::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::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::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 '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 '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 26 | sizeof(art::mirror::StringDexCachePair)) | ^ 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': art/tools/cpp-define-generator/mirror_dex_cache.def:25:1: required from here 26 | sizeof(art::mirror::StringDexCachePair)) | ^ 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::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::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 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++: libbacktrace <= system/core/libbacktrace/Backtrace.cpp 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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\ | ^ 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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libbacktrace <= system/core/libbacktrace/BacktraceCurrent.cpp host C++: libbacktrace <= system/core/libbacktrace/BacktraceMap.cpp 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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libbacktrace <= system/core/libbacktrace/BacktracePtrace.cpp cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map: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_); | ^~~~~~~~~~~~~~~ host C++: libbacktrace <= system/core/libbacktrace/ThreadEntry.cpp 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) \ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libbacktrace <= system/core/libbacktrace/UnwindCurrent.cpp cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libbacktrace <= system/core/libbacktrace/UnwindPtrace.cpp 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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C: libbacktrace <= system/core/libbacktrace/thread_utils.c host C++: libbacktrace <= system/core/libbacktrace/UnwindMap.cpp 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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host SharedLib: libsigchain (out/host/linux-x86/obj/lib/libsigchain.so) cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host SharedLib: libunwind (out/host/linux-x86/obj/lib/libunwind.so) host StaticLib: libelffile (out/host/linux-x86/obj/STATIC_LIBRARIES/libelffile_intermediates/libelffile.a) host C++: libopenjdk <= libcore/ojluni/src/main/native/linux_close.cpp 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/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\ | ^ 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++: libopenjdk <= libcore/ojluni/src/main/native/Character.cpp cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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/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) \ | ^ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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/dexlayout/dex_ir.h:119:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 119 | using reference = typename std::iterator::reference; | ^~~~~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ /usr/include/c++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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-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++/14.2.0/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++/14.2.0/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++/14.2.0/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libopenjdk <= libcore/ojluni/src/main/native/Register.cpp 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 26 | sizeof(art::mirror::StringDexCachePair)) | ^ 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 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); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libopenjdk <= libcore/ojluni/src/main/native/socket_tagger_util.cpp 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-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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/java_util_zip_ZipFile.c cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 | ^~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/java_util_zip_Inflater.c 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) \ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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/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 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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/java_util_zip_Deflater.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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/java_util_zip_CRC32.c 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/Adler32.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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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_Inflater.c:37: /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 /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 | ^~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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 { | ^~~~~~~~~~~~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/zip_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/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 | ^~~~~~~ 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 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\ | ^ 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/jni_util.c host C: libopenjdk <= libcore/ojluni/src/main/native/jni_util_md.c host C: libopenjdk <= libcore/ojluni/src/main/native/io_util.c In file included from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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 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/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/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/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/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/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/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/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/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/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/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/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/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/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)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/canonicalize_md.c host C: libopenjdk <= libcore/ojluni/src/main/native/FileDescriptor_md.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_; | ^ 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 host C: libopenjdk <= libcore/ojluni/src/main/native/DatagramChannelImpl.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/jni_util.c:30: /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/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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 { | ^~~~~~~~~~~~ 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 host C: libopenjdk <= libcore/ojluni/src/main/native/DatagramDispatcher.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: libopenjdk <= libcore/ojluni/src/main/native/Console_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/zip_util.c:44: /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.c:33: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long 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]' 759 | return ThreadOffsetFromTlsPtr(OFFSETOF_MEMBER(tls_ptr_sized_values, card_table)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/tools/cpp-define-generator/thread.def:21:1: required from here 22 | art::Thread::CardTableOffset().Int32Value()) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ 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 *); | ^~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadFlagsOffset() [with art::PointerSize pointer_size = art::PointerSize::k64]': art/tools/cpp-define-generator/thread.def:31:1: required from here 32 | art::Thread::ThreadFlagsOffset().Int32Value()) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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::k64]': art/tools/cpp-define-generator/thread.def:33:1: required from here 34 | art::Thread::ThinLockIdOffset().Int32Value()) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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::k64]': art/tools/cpp-define-generator/thread.def:35:1: required from here 36 | art::Thread::InterpreterCacheOffset().Int32Value()) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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::k64]': art/tools/cpp-define-generator/thread.def:39:1: required from here 40 | art::Thread::IsGcMarkingOffset().Int32Value()) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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::k64]': art/tools/cpp-define-generator/thread.def:59:1: required from here 60 | art::Thread::UseMterpOffset().Int32Value()) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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_) + | ^~~~~~~~~~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/IOUtil.c art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long 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]' 759 | return ThreadOffsetFromTlsPtr(OFFSETOF_MEMBER(tls_ptr_sized_values, card_table)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/tools/cpp-define-generator/thread.def:21:1: required from here 22 | art::Thread::CardTableOffset().Int32Value()) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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::k64]': art/tools/cpp-define-generator/thread.def:31:1: required from here 32 | art::Thread::ThreadFlagsOffset().Int32Value()) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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::k64]': art/tools/cpp-define-generator/thread.def:33:1: required from here 34 | art::Thread::ThinLockIdOffset().Int32Value()) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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_) + | ^~~~~~~~~~~~~~~ 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 | } | ^ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::InterpreterCacheOffset() [with art::PointerSize pointer_size = art::PointerSize::k64]': art/tools/cpp-define-generator/thread.def:35:1: required from here 36 | art::Thread::InterpreterCacheOffset().Int32Value()) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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::k64]': art/tools/cpp-define-generator/thread.def:39:1: required from here 40 | art::Thread::IsGcMarkingOffset().Int32Value()) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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::k64]': art/tools/cpp-define-generator/thread.def:59:1: required from here 60 | art::Thread::UseMterpOffset().Int32Value()) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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_) + | ^~~~~~~~~~~~~~~ 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/FileDescriptor_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: 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 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 | ^~~~~~~ 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/Console_md.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 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/PollArrayWrapper.c 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 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 | ^~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/SocketChannelImpl.c host C: libopenjdk <= libcore/ojluni/src/main/native/FileChannelImpl.c 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/FileDispatcherImpl.c In file included from art/libelffile/elf/elf_utils.h:22, from art/libelffile/elf/elf_builder.h:30, 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 | ^~~~~~~ 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ libcore/ojluni/src/main/native/canonicalize_md.c: In function 'JDK_canonicalize': 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)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ 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 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 | ^~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/FileOutputStream_md.c 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++/14.2.0/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++/14.2.0/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++/14.2.0/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 | ^~~~~~~ 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/PollArrayWrapper.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 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 | ^~~~~~~ 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 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 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: libopenjdk <= libcore/ojluni/src/main/native/FileSystemPreferences.c art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long 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]' 759 | return ThreadOffsetFromTlsPtr(OFFSETOF_MEMBER(tls_ptr_sized_values, card_table)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/tools/cpp-define-generator/thread.def:21:1: required from here 22 | art::Thread::CardTableOffset().Int32Value()) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ 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 art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadFlagsOffset() [with art::PointerSize pointer_size = art::PointerSize::k64]': art/tools/cpp-define-generator/thread.def:31:1: required from here 32 | art::Thread::ThreadFlagsOffset().Int32Value()) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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::k64]': art/tools/cpp-define-generator/thread.def:33:1: required from here 34 | art::Thread::ThinLockIdOffset().Int32Value()) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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::k64]': art/tools/cpp-define-generator/thread.def:35:1: required from here 36 | art::Thread::InterpreterCacheOffset().Int32Value()) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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::k64]': art/tools/cpp-define-generator/thread.def:39:1: required from here 40 | art::Thread::IsGcMarkingOffset().Int32Value()) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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::k64]': art/tools/cpp-define-generator/thread.def:59:1: required from here 60 | art::Thread::UseMterpOffset().Int32Value()) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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_) + | ^~~~~~~~~~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/EPoll.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 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 art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 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 | ^~~~~~~ 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 art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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; | ^~~~~~ 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 cc1plus: note: unrecognized command-line option '-Wno-extern-c-compat' 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/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 host C: libopenjdk <= libcore/ojluni/src/main/native/EPollPort.c 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/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; | ^~~~ 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/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 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/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; | ^~~~ 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 | ^~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/io_util_md.c host C: libopenjdk <= libcore/ojluni/src/main/native/NativeThread.c 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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 libcore/ojluni/src/main/native/jvm_md.h:68, from libcore/ojluni/src/main/native/jvm.h:33, from libcore/ojluni/src/main/native/EPollPort.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 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 | ^~~~~~~ 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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/FileKey.c art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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: libopenjdk <= libcore/ojluni/src/main/native/UnixFileSystem_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/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 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 | ^~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/ObjectStreamClass.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/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/ObjectOutputStream.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 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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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/NativeThread.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/ObjectInputStream.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 host C: libopenjdk <= libcore/ojluni/src/main/native/LinuxNativeDispatcher.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 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/LinuxWatchService.c 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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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/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/FileKey.c:28: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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; | ^~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/UnixNativeDispatcher.c art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map:58, from /usr/include/c++/14.2.0/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_), | ^~~~~~~~~~~~~~~~~~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/InetAddress.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/ObjectStreamClass.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/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 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41: /usr/include/c++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 | ^~~~~~~ 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 | ^~~~~~~ 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 | ^~~~~~~ In file included from art/libprofile/./profile/profile_compilation_info.h:25: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/LinuxWatchService.c:35: /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/net_util.c 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_); | ^~~~~~~~~~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/net_util_md.c host C: libopenjdk <= libcore/ojluni/src/main/native/Net.c 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 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/Inet6Address.c 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: 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 host C: libopenjdk <= libcore/ojluni/src/main/native/Inet4Address.c 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 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 | ^~~~~~~ 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 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 | ^~~~~~~ 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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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: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 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/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 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 | ^~~~~~~ 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 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 | ^~~~~~~ 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/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++/14.2.0/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 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 | ^~~~~~~ cc1plus: note: unrecognized command-line option '-Wno-extern-c-compat' may have been intended to silence earlier diagnostics 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 | ^~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/ServerSocketChannelImpl.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 | ^~~~~~~ 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 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/SocketInputStream.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/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 | ^~~~~~~ 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 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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/SocketOutputStream.c external/wolfssljni/native/com_wolfssl_WolfSSLSession.c: In function 'Java_com_wolfssl_WolfSSLSession_setVerify': external/wolfssljni/native/com_wolfssl_WolfSSLSession.c:3545:21: warning: 'verifyCb' may be used uninitialized [-Wmaybe-uninitialized] 3545 | if (appData && verifyCb) { | ^~ external/wolfssljni/native/com_wolfssl_WolfSSLSession.c:3518:14: note: 'verifyCb' was declared here 3518 | jobject* verifyCb; | ^~~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/Float.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 | ^~~~~~~ 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/Double.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/MappedByteBuffer.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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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.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 | ^~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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 | ^~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/StrictMath.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/Float.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/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/SocketOutputStream.c:33: /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/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 | ^~~~~~~ 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 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 | ^~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/System.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/Double.c:29: /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/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 | ^~~~~~~ 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/Runtime.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 host C: libopenjdk <= libcore/ojluni/src/main/native/UNIXProcess_md.c host C: libopenjdk <= libcore/ojluni/src/main/native/Bits.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 host Executable: acp (out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp) host StaticLib: libfdlibm (out/host/linux-x86/obj/STATIC_LIBRARIES/libfdlibm_intermediates/libfdlibm.a) 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; | ^~~~~ 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/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; | ^~~~~~~~ libcore/ojluni/src/main/native/System.c:32:9: warning: "_GNU_SOURCE" redefined 32 | #define _GNU_SOURCE | ^~~~~~~~~~~ : note: this is the location of the previous definition 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 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 | ^~~~~~~ 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 'long unsigned int'} and 'const int' [-Wsign-compare] 1379 | for (size_t e = 0; e < type->entry_count; e++) { | ~~^~~~~~~~~~~~~~~~~~~ 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 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 | ^~~~~~~ Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libartbase_intermediates/arch/instruction_set.h_operator_out.cc 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 'long unsigned int'} [-Wsign-compare] 1488 | for (int p = 0; p < packages_.size(); p++) { | ~~^~~~~~~~~~~~~~~~~~ Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libartbase_intermediates/base/allocator.h_operator_out.cc libandroidfw/AssetManager2.cpp:1494:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::array, 256>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1494 | for (int t = 0; t < package->types.size(); t++) { | ~~^~~~~~~~~~~~~~~~~~~~~~~ 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 | ^~~~~~~ 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 Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libdexfile_intermediates/dex/dex_instruction_utils.h_operator_out.cc Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libdexfile_intermediates/dex/invoke_type.h_operator_out.cc Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libdexfile_intermediates/dex/method_reference.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-compiler_intermediates/driver/compiler_options.h_operator_out.cc 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 | } | ^ libandroidfw/ResourceTypes.cpp:3091:8: note: here 3091 | case 5: | ^~~~ 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 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 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 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/stl_tree.h:63, from /usr/include/c++/14.2.0/set:62, from art/libprofile/profile/profile_compilation_info.h:20: /usr/include/c++/14.2.0/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/utils/mips64/assembler_mips64.h_operator_out.cc Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/mterp_arm64.S Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/base/callee_save_type.h_operator_out.cc 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 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: | ^~~~ Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/gc_root.h_operator_out.cc cc1plus: note: unrecognized command-line option '-Wno-extern-c-compat' may have been intended to silence earlier diagnostics 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 In file included from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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 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_; | ^ Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/lock_word.h_operator_out.cc Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/oat.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/object_callbacks.h_operator_out.cc Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/process_state.h_operator_out.cc 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 In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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 { | ^~~~~~~~~~~~ Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/ti/agent.h_operator_out.cc Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/verifier/verifier_enums.h_operator_out.cc Copy: out/host/linux-x86/obj/STATIC_LIBRARIES/libart-dex2oat_intermediates/dex/dex_to_dex_compiler.h_operator_out.cc Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/trace.h_operator_out.cc Copy: out/host/linux-x86/obj/STATIC_LIBRARIES/libart-dex2oat_intermediates/linker/image_writer.h_operator_out.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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ Copy: out/host/linux-x86/obj/STATIC_LIBRARIES/libart-dex2oat_intermediates/driver/compiler_driver.h_operator_out.cc Install: out/host/linux-x86/lib64/libcutils.so art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/thread_state.h_operator_out.cc In file included from art/libprofile/profile/profile_compilation_info.h:25: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' In file included from art/libartbase/base/allocator.h:22, from art/runtime/gc/space/large_object_space.h:20: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ Install: out/host/linux-x86/lib64/libutils.so Install: out/host/linux-x86/lib64/libunwind.so Install: out/host/linux-x86/lib64/libnativebridge.so Install: out/host/linux-x86/lib64/libsigchain.so host Prebuilt: jarjar (out/host/common/obj/JAVA_LIBRARIES/jarjar_intermediates/javalib.jar) host SharedLib: libnativehelper (out/host/linux-x86/obj/lib/libnativehelper.so) In file included from art/libprofile/./profile/profile_compilation_info.h:25, from art/dexlayout/dexlayout.cc:53: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 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 cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libartbase <= art/libartbase/base/arena_bit_vector.cc 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; | ^~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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; | ^~~~~ host C++: libartbase <= art/libartbase/base/bit_vector.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; | ^~~~~~~~ host C++: libartbase <= art/libartbase/base/enums.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libartbase <= art/libartbase/base/file_magic.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); | ^~~~~~~~ In file included from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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_; | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libartbase <= art/libartbase/base/file_utils.cc host C++: libartbase <= art/libartbase/base/hex_dump.cc In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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++: libartbase <= art/libartbase/base/hiddenapi_flags.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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 host C++: libartbase <= art/libartbase/base/logging.cc 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 { | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ In file included from /usr/include/c++/14.2.0/bits/forward_list.h:36, from /usr/include/c++/14.2.0/forward_list:40, from art/dex2oat/dex2oat.cc:102: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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/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) \ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libartbase <= art/libartbase/base/malloc_arena_pool.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/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/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) \ | ^ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libartbase <= art/libartbase/base/membarrier.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) \ | ^ host C++: libartbase <= art/libartbase/base/memfd.cc In file included from art/runtime/base/locks.h:25, from art/runtime/gc_root.h:20, from art/runtime/art_method.h:38: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' host C++: libartbase <= art/libartbase/base/memory_region.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ In file included from art/runtime/gc_root.h:22: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' host C++: libartbase <= art/libartbase/base/mem_map.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libartbase <= art/libartbase/base/os_linux.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); | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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; | ^~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libartbase <= art/libartbase/base/runtime_debug.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) \ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libartbase <= art/libartbase/base/safe_copy.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libartbase <= art/libartbase/base/scoped_arena_allocator.cc In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map:58, from /usr/include/c++/14.2.0/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_), | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41: /usr/include/c++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libartbase <= art/libartbase/base/scoped_flock.cc 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) \ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libartbase <= art/libartbase/base/socket_peer_is_trusted.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libartbase <= art/libartbase/base/time_utils.cc 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/unix_file/fd_file.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) \ | ^ 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_); | ^~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libartbase <= art/libartbase/base/unix_file/random_access_file_utils.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libartbase <= art/libartbase/base/utils.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) \ | ^ 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) \ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libartbase <= out/host/linux-x86/obj/SHARED_LIBRARIES/libartbase_intermediates/arch/instruction_set.h_operator_out.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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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_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/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++: libartbase <= art/libartbase/base/zip_archive.cc 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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from art/dex2oat/dex2oat_options.h:21: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 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 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); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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; | ^~~~~ 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) \ | ^ 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, | ~~~~~~~~~^~~ host C++: libartbase <= out/host/linux-x86/obj/SHARED_LIBRARIES/libartbase_intermediates/base/allocator.h_operator_out.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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); | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++: libartbase <= out/host/linux-x86/obj/SHARED_LIBRARIES/libartbase_intermediates/base/unix_file/fd_file.h_operator_out.cc 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) | ^~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libdexfile <= art/libdexfile/dex/art_dex_file_loader.cc 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) \ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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 '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 '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); | ^~~~~~~~~ host C++: libdexfile <= art/libdexfile/dex/compact_dex_file.cc 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) \ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libdexfile <= art/libdexfile/dex/compact_offset_table.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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) \ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libdexfile <= art/libdexfile/dex/dex_file.cc 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; | ^~~~~ host C++: libdexfile <= art/libdexfile/dex/dex_file_exception_helpers.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; | ^~~~~~~~ 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) \ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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/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) \ | ^ 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/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; | ^~~~~ host C++: libdexfile <= art/libdexfile/dex/dex_file_layout.cc host C++: libdexfile <= art/libdexfile/dex/descriptors_names.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libdexfile <= art/libdexfile/dex/dex_file_loader.cc 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) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libdexfile <= art/libdexfile/dex/dex_file_tracking_registrar.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libdexfile <= art/libdexfile/dex/dex_file_verifier.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libdexfile <= art/libdexfile/dex/modifiers.cc 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) \ | ^ host C++: libdexfile <= art/libdexfile/dex/primitive.cc host C++: libdexfile <= art/libdexfile/dex/dex_instruction.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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) \ | ^ host C++: libdexfile <= art/libdexfile/dex/signature.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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) \ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libdexfile <= art/libdexfile/dex/standard_dex_file.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:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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; | ^~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libdexfile <= art/libdexfile/dex/type_lookup_table.cc 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; | ^~~~~~~~ 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/utf.cc 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 | ^~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libdexfile <= out/host/linux-x86/obj/SHARED_LIBRARIES/libdexfile_intermediates/dex/dex_file_layout.h_operator_out.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libdexfile <= out/host/linux-x86/obj/SHARED_LIBRARIES/libdexfile_intermediates/dex/dex_instruction.h_operator_out.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67: 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/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) \ | ^ 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/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) \ | ^ 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++: libdexfile <= out/host/linux-x86/obj/SHARED_LIBRARIES/libdexfile_intermediates/dex/dex_instruction_utils.h_operator_out.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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/libdexfile/dex/dex_file.h:30, from art/libdexfile/dex/compact_dex_file.h:21, from art/libdexfile/dex/compact_dex_file.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/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) \ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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++: libdexfile <= out/host/linux-x86/obj/SHARED_LIBRARIES/libdexfile_intermediates/dex/invoke_type.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 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ target Generated: libart-compiler <= out/host/linux-x86/gen/SHARED_LIBRARIES/libart-compiler_intermediates/asm_defines.S cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libdexfile <= out/host/linux-x86/obj/SHARED_LIBRARIES/libdexfile_intermediates/dex/method_reference.h_operator_out.cc target Generated: libart <= out/host/linux-x86/gen/SHARED_LIBRARIES/libart_intermediates/asm_defines.S target Generated: libart-dex2oat <= out/host/linux-x86/gen/STATIC_LIBRARIES/libart-dex2oat_intermediates/asm_defines.S 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) \ | ^ Install: out/host/linux-x86/framework/jarjar.jar 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) \ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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/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) \ | ^ 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/primitive.h:25, from art/libdexfile/dex/descriptors_names.h:22, from art/libdexfile/dex/descriptors_names.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 SharedLib: libwolfssljni (out/host/linux-x86/obj/lib/libwolfssljni.so) 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) \ | ^ Install: out/host/linux-x86/lib64/libnativehelper.so host Executable: dalvikvm (out/host/linux-x86/obj/EXECUTABLES/dalvikvm_intermediates/dalvikvm) 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/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_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) \ | ^ 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) \ | ^ Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/asm_defines.h 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) \ | ^ Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart-compiler_intermediates/asm_defines.h 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) \ | ^ 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/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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 asm: libart <= art/runtime/arch/arm64/jni_entrypoints_arm64.S 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 asm: libart <= art/runtime/arch/arm64/memcmp16_arm64.S 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/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) \ | ^ 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: At global scope: art/runtime/thread.h:1574:27: warning: 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: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) \ | ^ 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 | ^~~~~~~ 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) \ | ^ 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) \ | ^ host asm: libart <= art/runtime/arch/arm64/quick_entrypoints_arm64.S 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) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ 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 '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:75: warning: passing 'uint8_t' {aka 'unsigned char'} chooses 'int' over '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] host C++: libart <= art/runtime/interpreter/mterp/mterp.cc 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; | ^~~~~~~~~~~~~~~~~~~ art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/libartbase/base/allocator.cc: In member function 'virtual void* art::MallocAllocator::Alloc(size_t)': art/libartbase/base/allocator.cc:34:19: warning: 'void* calloc(size_t, size_t)' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Wcalloc-transposed-args] 34 | return calloc(sizeof(uint8_t), size); | ^~~~~~~~~~~~~~~ art/libartbase/base/allocator.cc:34:19: note: earlier argument should specify number of elements, later size of each element host C++: libart <= art/runtime/arch/arm64/context_arm64.cc host C++: libart <= art/runtime/arch/arm64/entrypoints_init_arm64.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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) | ^~~~~~~~~~~~~~~~~~~ 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) | ^~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/arch/arm64/thread_arm64.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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) \ | ^ host C++: libart <= art/runtime/monitor_pool.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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: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/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) \ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libart <= art/runtime/arch/arm64/fault_handler_arm64.cc 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++/14.2.0/iterator:61, from art/libartbase/base/bit_vector.h:21: /usr/include/c++/14.2.0/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/arena_object.h:20: /usr/include/c++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart <= art/runtime/monitor_linux.cc In file included from art/libartbase/base/allocator.h:22, from art/libartbase/base/arena_bit_vector.cc:19: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 { | ^~~~~~~~ /usr/include/c++/14.2.0/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: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) \ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' host C++: libart <= art/runtime/runtime_linux.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ cc1plus: note: unrecognized command-line option '-Wno-extern-c-compat' may have been intended to silence earlier diagnostics 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/arch/context.h:23, from art/runtime/arch/arm64/context_arm64.h:22, from art/runtime/arch/arm64/context_arm64.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/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) \ | ^ 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/arm64/context_arm64.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/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/entrypoints/entrypoint_utils.h:24, from art/runtime/arch/arm64/entrypoints_init_arm64.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) \ | ^ host C++: libart <= art/runtime/thread_linux.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/thread.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/arm64/thread_arm64.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/libartbase/base/atomic.h:27, from art/libartbase/base/allocator.h:22, from art/runtime/monitor.h:29, from art/runtime/monitor_pool.h:20, from art/runtime/monitor_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/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/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) \ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libart <= art/runtime/aot_class_linker.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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) \ | ^ 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) \ | ^ host C++: libart <= art/runtime/art_field.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_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.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/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) \ | ^ 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/arm64/fault_handler_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 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/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) \ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libart <= art/runtime/art_method.cc 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/runtime/base/mutex-inl.h:26, from art/runtime/monitor_pool.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/runtime/thread-current-inl.h:20, from art/runtime/monitor_pool.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\ | ^ host C++: libart <= art/runtime/backtrace_helper.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\ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/arch/arm64/fault_handler_arm64.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\ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libart <= art/runtime/base/locks.cc host C++: libart <= art/runtime/barrier.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libart <= art/runtime/base/mem_map_arena_pool.cc host C++: libart <= art/runtime/base/mutex.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libart <= art/runtime/base/quasi_atomic.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libart <= art/runtime/base/timing_logger.cc 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) \ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libart <= art/runtime/cha.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ art/runtime/thread.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/allocator.h:22, from art/libartbase/base/mem_map.cc:36: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libart <= art/runtime/class_linker.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/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 '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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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: 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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 '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] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/algorithm:60, from art/libdexfile/dex/dex_file_layout.h:20, from art/libdexfile/dex/dex_file_layout.cc:17: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart <= art/runtime/class_loader_context.cc 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/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) \ | ^ 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) \ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/deque:62, from art/libdexfile/dex/dex_file_tracking_registrar.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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) \ | ^ 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\ | ^ 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/algorithm:60, from art/libdexfile/dex/compact_dex_file.cc:17: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from /usr/include/c++/14.2.0/bits/locale_classes.h:40, from /usr/include/c++/14.2.0/bits/ios_base.h:41, from /usr/include/c++/14.2.0/ios:44, from /usr/include/c++/14.2.0/ostream:40, from /usr/include/c++/14.2.0/iostream:41, from out/host/linux-x86/obj/SHARED_LIBRARIES/libdexfile_intermediates/dex/dex_file.h_operator_out.cc:1: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/class_root.cc 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/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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from art/libdexfile/dex/signature.h:21: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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 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) \ | ^ 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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) \ | ^ 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" 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::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/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) \ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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 { | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/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) \ | ^ 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_); | ^~~~~~~~~~~~~~~ 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/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++/14.2.0/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++/14.2.0/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/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\ | ^ host C++: libart <= art/runtime/class_table.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++/14.2.0/bits/stl_construct.h:61, from /usr/include/c++/14.2.0/bits/stl_tempbuf.h:61, from /usr/include/c++/14.2.0/memory:66, from art/libdexfile/dex/dex_file.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_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/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\ | ^ art/runtime/thread.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/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++/14.2.0/bits/stl_construct.h:61, from /usr/include/c++/14.2.0/bits/stl_tempbuf.h:61, from /usr/include/c++/14.2.0/memory:66, from art/libdexfile/dex/art_dex_file_loader.h:21: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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/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) \ | ^ 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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) \ | ^ 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/common_throws.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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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\ | ^ 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::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 '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::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::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::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_); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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) \ | ^ 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 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/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/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/base/mutex-inl.h:26, 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\ | ^ 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/libdexfile/dex/descriptors_names.cc:253:13: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 253 | static bool IsValidPartOfMemberNameUtf8(const char** pUtf8Ptr) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/compiler_filter.cc 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_set.h:33, from /usr/include/c++/14.2.0/unordered_set:41, from art/libdexfile/dex/dex_file_verifier.h:21: /usr/include/c++/14.2.0/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++/14.2.0/bits/stl_construct.h:61, from /usr/include/c++/14.2.0/bits/stl_tempbuf.h:61, from /usr/include/c++/14.2.0/memory:66, from art/libdexfile/dex/dex_file_loader.h:21, from art/libdexfile/dex/dex_file_loader.cc:17: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart <= art/runtime/debug_print.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); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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\ | ^ 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: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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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); | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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) \ | ^ 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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/debugger.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); | ^~~~~~~~ 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/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::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/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/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/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: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); | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libart <= art/runtime/dex/dex_file_annotations.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/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) \ | ^ 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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/algorithm:60, from art/libdexfile/dex/standard_dex_file.cc:17: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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); | ^~~~~~~~ host C++: libart <= art/runtime/dex_register_location.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); | ^~~~~~~~ host C++: libart <= art/runtime/dex_to_dex_decompiler.cc 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/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); | ^~~~~~~~ host C++: libart <= art/runtime/elf_file.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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); | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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) \ | ^ 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: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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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\ | ^ 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) \ | ^ 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/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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]' 180 | << detail::ToStringAny(value) << "'" << std::endl; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ art/dex2oat/dex2oat_options.cc:216:19: required from here 199 | parser_builder-> | ~~~~~~~~~~~~~~~~ 200 | Define({"--watch-dog", "--no-watch-dog"}) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 201 | .WithValues({true, false}) | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 202 | .IntoKey(M::Watchdog) | ~~~~~~~~~~~~~~~~~~~~~ 203 | .Define("--watchdog-timeout=_") | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 204 | .WithType() | ~~~~~~~~~~~~~~~~ 205 | .IntoKey(M::WatchdogTimeout) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 206 | .Define("-j_") | ~~~~~~~~~~~~~~ 207 | .WithType() | ~~~~~~~~~~~~~~~~~~~~~~~~~ 208 | .IntoKey(M::Threads) | ~~~~~~~~~~~~~~~~~~~~ 209 | .Define("--android-root=_") | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 210 | .WithType() | ~~~~~~~~~~~~~~~~~~~~~~~~ 211 | .IntoKey(M::AndroidRoot) | ~~~~~~~~~~~~~~~~~~~~~~~~ 212 | .Define("--compiler-backend=_") | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 213 | .WithType() | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 214 | .WithValueMap({{"Quick", Compiler::Kind::kQuick}, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 215 | {"Optimizing", Compiler::Kind::kOptimizing}}) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 216 | .IntoKey(M::Backend) | ~~~~~~~~^~~~~~~~~~~~ art/cmdline/detail/cmdline_parser_detail.h:95:10: warning: passing 'art::Compiler::Kind' chooses 'int' over '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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart <= art/runtime/exec_utils.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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/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 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++: libart <= art/runtime/fault_handler.cc 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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++/14.2.0/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++/14.2.0/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/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from /usr/include/c++/14.2.0/bits/locale_classes.h:40, from /usr/include/c++/14.2.0/bits/ios_base.h:41, from /usr/include/c++/14.2.0/ios:44, from /usr/include/c++/14.2.0/ostream:40, from /usr/include/c++/14.2.0/iostream:41, from out/host/linux-x86/obj/SHARED_LIBRARIES/libdexfile_intermediates/dex/method_reference.h_operator_out.cc:1: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart <= art/runtime/gc/allocation_record.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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\ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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) \ | ^ 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) \ | ^ 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:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart <= art/runtime/gc/allocator/dlmalloc.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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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) \ | ^ 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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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) \ | ^ host C++: libart <= art/runtime/gc/allocator/rosalloc.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_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\ | ^ 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/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/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: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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/functional:63, from libbase/include/android-base/logging.h:60, from art/libdexfile/dex/dex_instruction.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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/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: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) \ | ^ host C++: libart <= art/runtime/gc/accounting/bitmap.cc 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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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\ | ^ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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: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) \ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ In file included from art/runtime/gc_root.h:22, from art/runtime/monitor.h:32: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/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) \ | ^ host C++: libart <= art/runtime/gc/accounting/card_table.cc 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) \ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/runtime/common_throws.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/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/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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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) \ | ^ 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: art/runtime/thread.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-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++/14.2.0/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++/14.2.0/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++/14.2.0/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/gc/accounting/heap_bitmap.cc art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' In file included from art/runtime/arch/arm64/context_arm64.cc:22: 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/functional:63, from libbase/include/android-base/logging.h:60, from art/runtime/arch/arm64/context_arm64.h:20: /usr/include/c++/14.2.0/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 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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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\ | ^ 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) \ | ^ art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' In file included from art/runtime/stack_reference.h:21, from art/runtime/handle.h:28, from art/runtime/entrypoints/entrypoint_utils.h:29: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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) \ | ^ 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" 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/dex/dex_file_annotations.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/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/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) \ | ^ host C++: libart <= art/runtime/gc/accounting/remembered_set.cc In file included from art/libdexfile/dex/dex_file.h:32, from art/runtime/interpreter/interpreter.h:21, from art/runtime/arch/arm64/entrypoints_init_arm64.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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/specfun.h:43, from /usr/include/c++/14.2.0/cmath:3898, from /usr/include/c++/14.2.0/math.h:36, from art/runtime/arch/arm64/entrypoints_init_arm64.cc:17: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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, 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\ | ^ art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/arm64/fault_handler_arm64.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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62, from art/runtime/fault_handler.h:24: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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: | ^~~~ art/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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\ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 '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] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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(); | ^~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' In file included from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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: | ^~~~ host C++: libart <= art/runtime/gc/accounting/space_bitmap.cc 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) \ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ In file included from art/runtime/gc_root.h:22, from art/runtime/monitor.h:32: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/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/arch/arm64/entrypoints_init_arm64.cc:55:28: warning: redundant redeclaration of 'art::mirror::Object* art::art_quick_read_barrier_mark_reg12(mirror::Object*)' in same scope [-Wredundant-decls] 55 | extern "C" mirror::Object* art_quick_read_barrier_mark_reg12(mirror::Object*); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/arch/arm64/entrypoints_init_arm64.cc:54:28: note: previous declaration of 'art::mirror::Object* art::art_quick_read_barrier_mark_reg12(mirror::Object*)' 54 | extern "C" mirror::Object* art_quick_read_barrier_mark_reg12(mirror::Object*); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/arch/arm64/entrypoints_init_arm64.cc:66:28: warning: redundant redeclaration of 'art::mirror::Object* art::art_quick_read_barrier_mark_reg22(mirror::Object*)' in same scope [-Wredundant-decls] 66 | extern "C" mirror::Object* art_quick_read_barrier_mark_reg22(mirror::Object*); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/arch/arm64/entrypoints_init_arm64.cc:65:28: note: previous declaration of 'art::mirror::Object* art::art_quick_read_barrier_mark_reg22(mirror::Object*)' 65 | extern "C" mirror::Object* art_quick_read_barrier_mark_reg22(mirror::Object*); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/gc/collector/concurrent_copying.cc art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/gc_root.h:22, from art/runtime/runtime.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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) \ | ^ libcore/luni/src/main/native/libcore_io_Linux.cpp: In function 'jint Linux_poll(JNIEnv*, jobject, jobjectArray, jint)': libcore/luni/src/main/native/libcore_io_Linux.cpp:1864:11: warning: 'void* memset(void*, int, size_t)' specified bound between 18446744056529682432 and 18446744073709551608 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=] 1864 | memset(fds.get(), 0, sizeof(struct pollfd) * arrayLength); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/gc/collector/garbage_collector.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]' 465 | access_to->GetClassLoader()); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:526:40: required from here 526 | return ResolvedFieldAccessTest(access_to, field, dex_cache, field_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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::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/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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: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:87:53: required from 'int32_t art::mirror::String::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]' 87 | return GetLengthFromCount(GetCount()); | ~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/string-inl.h:46:28: required from here 46 | int32_t count = GetLength(); | ~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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) \ | ^ 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/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; | ^~~~~ 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::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/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; | ^~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/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/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/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/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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 { | ^~~~~~~~~~~~ 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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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::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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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::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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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::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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67, from /usr/include/c++/14.2.0/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::k64]': art/runtime/arch/arm64/thread_arm64.cc:27:3: required from here 27 | CHECK_EQ(THREAD_FLAGS_OFFSET, ThreadFlagsOffset().Int32Value()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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_) + | ^~~~~~~~~~~~~~~ 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) \ | ^ 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: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long 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]' 759 | return ThreadOffsetFromTlsPtr(OFFSETOF_MEMBER(tls_ptr_sized_values, card_table)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/arch/arm64/thread_arm64.cc:28:3: required from here 28 | CHECK_EQ(THREAD_CARD_TABLE_OFFSET, CardTableOffset().Int32Value()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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; | ^~~~~~~~~ In file included from art/libdexfile/dex/class_accessor-inl.h:28, from art/libdexfile/dex/dex_file_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/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/method_reference.h:23: 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: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThinLockIdOffset() [with art::PointerSize pointer_size = art::PointerSize::k64]': art/runtime/arch/arm64/thread_arm64.cc:30:3: required from here 30 | CHECK_EQ(THREAD_ID_OFFSET, ThinLockIdOffset().Int32Value()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 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); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/gc/collector/immune_region.cc 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/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) \ | ^ 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/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) \ | ^ 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) \ | ^ 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) \ | ^ 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\ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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_; | ^ 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/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 { | ^~~~~~~~~~~~ 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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 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) \ | ^ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/gc/collector/immune_spaces.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/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\ | ^ 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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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\ | ^ 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\ | ^ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 '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] 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; | ^~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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/gc/accounting/space_bitmap.h:26, from art/runtime/gc/accounting/space_bitmap-inl.h:20, from art/runtime/gc/accounting/space_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) \ | ^ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ 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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ 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/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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:165:23: warning: unnecessary parentheses in declaration of 'field' [-Wparentheses] 165 | const dex::FieldId* (var) = CheckLoadFieldId(idx, fmt); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2127:5: note: in expansion of macro 'LOAD_FIELD' 2127 | LOAD_FIELD(field, read_field.GetIndex(), "first_class_data_definer field_id", | ^~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:165:23: note: remove parentheses 165 | const dex::FieldId* (var) = CheckLoadFieldId(idx, fmt); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2127:5: note: in expansion of macro 'LOAD_FIELD' 2127 | LOAD_FIELD(field, read_field.GetIndex(), "first_class_data_definer field_id", | ^~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:158:24: warning: unnecessary parentheses in declaration of 'method' [-Wparentheses] 158 | const dex::MethodId* (var) = CheckLoadMethodId(idx, error_string); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2135:5: note: in expansion of macro 'LOAD_METHOD' 2135 | LOAD_METHOD(method, read_method.GetIndex(), "first_class_data_definer method_id", | ^~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:158:24: note: remove parentheses 158 | const dex::MethodId* (var) = CheckLoadMethodId(idx, error_string); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2135:5: note: in expansion of macro 'LOAD_METHOD' 2135 | 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:165:23: warning: unnecessary parentheses in declaration of 'field' [-Wparentheses] 165 | const dex::FieldId* (var) = CheckLoadFieldId(idx, fmt); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2151:5: note: in expansion of macro 'LOAD_FIELD' 2151 | LOAD_FIELD(field, field_items[0].field_idx_, "first_annotations_dir_definer field_id", | ^~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:165:23: note: remove parentheses 165 | const dex::FieldId* (var) = CheckLoadFieldId(idx, fmt); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2151:5: note: in expansion of macro 'LOAD_FIELD' 2151 | LOAD_FIELD(field, field_items[0].field_idx_, "first_annotations_dir_definer field_id", | ^~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:158:24: warning: unnecessary parentheses in declaration of 'method' [-Wparentheses] 158 | const dex::MethodId* (var) = CheckLoadMethodId(idx, error_string); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2158:5: note: in expansion of macro 'LOAD_METHOD' 2158 | LOAD_METHOD(method, method_items[0].method_idx_, "first_annotations_dir_definer method id", | ^~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:158:24: note: remove parentheses 158 | const dex::MethodId* (var) = CheckLoadMethodId(idx, error_string); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2158:5: note: in expansion of macro 'LOAD_METHOD' 2158 | LOAD_METHOD(method, method_items[0].method_idx_, "first_annotations_dir_definer method id", | ^~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:158:24: warning: unnecessary parentheses in declaration of 'method' [-Wparentheses] 158 | const dex::MethodId* (var) = CheckLoadMethodId(idx, error_string); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2165:5: note: in expansion of macro 'LOAD_METHOD' 2165 | LOAD_METHOD(method, parameter_items[0].method_idx_, "first_annotations_dir_definer method id", | ^~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:158:24: note: remove parentheses 158 | const dex::MethodId* (var) = CheckLoadMethodId(idx, error_string); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2165:5: note: in expansion of macro 'LOAD_METHOD' 2165 | LOAD_METHOD(method, parameter_items[0].method_idx_, "first_annotations_dir_definer method id", | ^~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc: In member function 'bool art::DexFileVerifier::CheckInterTypeIdItem()': art/libdexfile/dex/dex_file_verifier.cc:144:15: warning: unnecessary parentheses in declaration of 'descriptor' [-Wparentheses] 144 | const char* (var) = CheckLoadStringByIdx(idx, error); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2199:3: note: in expansion of macro 'LOAD_STRING' 2199 | LOAD_STRING(descriptor, item->descriptor_idx_, "inter_type_id_item descriptor_idx") | ^~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:144:15: note: remove parentheses 144 | const char* (var) = CheckLoadStringByIdx(idx, error); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2199:3: note: in expansion of macro 'LOAD_STRING' 2199 | 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:144:15: warning: unnecessary parentheses in declaration of 'shorty' [-Wparentheses] 144 | const char* (var) = CheckLoadStringByIdx(idx, error); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2225:3: note: in expansion of macro 'LOAD_STRING' 2225 | LOAD_STRING(shorty, item->shorty_idx_, "inter_proto_id_item shorty_idx") | ^~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:144:15: note: remove parentheses 144 | const char* (var) = CheckLoadStringByIdx(idx, error); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2225:3: note: in expansion of macro 'LOAD_STRING' 2225 | LOAD_STRING(shorty, item->shorty_idx_, "inter_proto_id_item shorty_idx") | ^~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:151:15: warning: unnecessary parentheses in declaration of 'return_type' [-Wparentheses] 151 | const char* (var) = CheckLoadStringByTypeIdx(type_idx, error); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2239:3: note: in expansion of macro 'LOAD_STRING_BY_TYPE' 2239 | LOAD_STRING_BY_TYPE(return_type, item->return_type_idx_, "inter_proto_id_item return_type_idx") | ^~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:151:15: note: remove parentheses 151 | const char* (var) = CheckLoadStringByTypeIdx(type_idx, error); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2239:3: note: in expansion of macro 'LOAD_STRING_BY_TYPE' 2239 | LOAD_STRING_BY_TYPE(return_type, item->return_type_idx_, "inter_proto_id_item return_type_idx") | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:764:48: required from 'static constexpr art::ThreadOffset art::Thread::ThreadSuspendTriggerOffset() [with art::PointerSize pointer_size = art::PointerSize::k64]' 764 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 765 | OFFSETOF_MEMBER(tls_ptr_sized_values, suspend_trigger)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/arch/arm64/fault_handler_arm64.cc:106:60: required from here 106 | (Thread::ThreadSuspendTriggerOffset().Int32Value() << 7); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map: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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(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_verifier.cc: In member function 'bool art::DexFileVerifier::CheckInterFieldIdItem()': art/libdexfile/dex/dex_file_verifier.cc:151:15: warning: unnecessary parentheses in declaration of 'class_descriptor' [-Wparentheses] 151 | const char* (var) = CheckLoadStringByTypeIdx(type_idx, error); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2307:3: note: in expansion of macro 'LOAD_STRING_BY_TYPE' 2307 | LOAD_STRING_BY_TYPE(class_descriptor, item->class_idx_, "inter_field_id_item class_idx") | ^~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:151:15: note: remove parentheses 151 | const char* (var) = CheckLoadStringByTypeIdx(type_idx, error); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2307:3: note: in expansion of macro 'LOAD_STRING_BY_TYPE' 2307 | LOAD_STRING_BY_TYPE(class_descriptor, item->class_idx_, "inter_field_id_item class_idx") | ^~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:151:15: warning: unnecessary parentheses in declaration of 'type_descriptor' [-Wparentheses] 151 | const char* (var) = CheckLoadStringByTypeIdx(type_idx, error); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2314:3: note: in expansion of macro 'LOAD_STRING_BY_TYPE' 2314 | LOAD_STRING_BY_TYPE(type_descriptor, item->type_idx_, "inter_field_id_item type_idx") | ^~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:151:15: note: remove parentheses 151 | const char* (var) = CheckLoadStringByTypeIdx(type_idx, error); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2314:3: note: in expansion of macro 'LOAD_STRING_BY_TYPE' 2314 | LOAD_STRING_BY_TYPE(type_descriptor, item->type_idx_, "inter_field_id_item type_idx") | ^~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:144:15: warning: unnecessary parentheses in declaration of 'descriptor' [-Wparentheses] 144 | const char* (var) = CheckLoadStringByIdx(idx, error); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2321:3: note: in expansion of macro 'LOAD_STRING' 2321 | LOAD_STRING(descriptor, item->name_idx_, "inter_field_id_item name_idx") | ^~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:144:15: note: remove parentheses 144 | const char* (var) = CheckLoadStringByIdx(idx, error); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2321:3: note: in expansion of macro 'LOAD_STRING' 2321 | 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:151:15: warning: unnecessary parentheses in declaration of 'class_descriptor' [-Wparentheses] 151 | const char* (var) = CheckLoadStringByTypeIdx(type_idx, error); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2354:3: note: in expansion of macro 'LOAD_STRING_BY_TYPE' 2354 | LOAD_STRING_BY_TYPE(class_descriptor, item->class_idx_, "inter_method_id_item class_idx") | ^~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:151:15: note: remove parentheses 151 | const char* (var) = CheckLoadStringByTypeIdx(type_idx, error); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2354:3: note: in expansion of macro 'LOAD_STRING_BY_TYPE' 2354 | LOAD_STRING_BY_TYPE(class_descriptor, item->class_idx_, "inter_method_id_item class_idx") | ^~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:144:15: warning: unnecessary parentheses in declaration of 'descriptor' [-Wparentheses] 144 | const char* (var) = CheckLoadStringByIdx(idx, error); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2362:3: note: in expansion of macro 'LOAD_STRING' 2362 | LOAD_STRING(descriptor, item->name_idx_, "inter_method_id_item name_idx") | ^~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:144:15: note: remove parentheses 144 | const char* (var) = CheckLoadStringByIdx(idx, error); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2362:3: note: in expansion of macro 'LOAD_STRING' 2362 | LOAD_STRING(descriptor, item->name_idx_, "inter_method_id_item name_idx") | ^~~~~~~~~~~ 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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/libdexfile/dex/dex_file_verifier.cc: In member function 'bool art::DexFileVerifier::CheckInterClassDefItem()': art/libdexfile/dex/dex_file_verifier.cc:151:15: warning: unnecessary parentheses in declaration of 'class_descriptor' [-Wparentheses] 151 | const char* (var) = CheckLoadStringByTypeIdx(type_idx, error); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2419:3: note: in expansion of macro 'LOAD_STRING_BY_TYPE' 2419 | LOAD_STRING_BY_TYPE(class_descriptor, item->class_idx_, "inter_class_def_item class_idx") | ^~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:151:15: note: remove parentheses 151 | const char* (var) = CheckLoadStringByTypeIdx(type_idx, error); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2419:3: note: in expansion of macro 'LOAD_STRING_BY_TYPE' 2419 | LOAD_STRING_BY_TYPE(class_descriptor, item->class_idx_, "inter_class_def_item class_idx") | ^~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:151:15: warning: unnecessary parentheses in declaration of 'superclass_descriptor' [-Wparentheses] 151 | const char* (var) = CheckLoadStringByTypeIdx(type_idx, error); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2475:5: note: in expansion of macro 'LOAD_STRING_BY_TYPE' 2475 | LOAD_STRING_BY_TYPE(superclass_descriptor, item->superclass_idx_, | ^~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:151:15: note: remove parentheses 151 | const char* (var) = CheckLoadStringByTypeIdx(type_idx, error); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2475:5: note: in expansion of macro 'LOAD_STRING_BY_TYPE' 2475 | LOAD_STRING_BY_TYPE(superclass_descriptor, item->superclass_idx_, | ^~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:151:15: warning: unnecessary parentheses in declaration of 'inf_descriptor' [-Wparentheses] 151 | const char* (var) = CheckLoadStringByTypeIdx(type_idx, error); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2516:7: note: in expansion of macro 'LOAD_STRING_BY_TYPE' 2516 | LOAD_STRING_BY_TYPE(inf_descriptor, interfaces->GetTypeItem(i).type_idx_, | ^~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:151:15: note: remove parentheses 151 | const char* (var) = CheckLoadStringByTypeIdx(type_idx, error); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2516:7: note: in expansion of macro 'LOAD_STRING_BY_TYPE' 2516 | LOAD_STRING_BY_TYPE(inf_descriptor, interfaces->GetTypeItem(i).type_idx_, | ^~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc: In member function 'bool art::DexFileVerifier::CheckInterMethodHandleItem()': art/libdexfile/dex/dex_file_verifier.cc:165:23: warning: unnecessary parentheses in declaration of 'field' [-Wparentheses] 165 | const dex::FieldId* (var) = CheckLoadFieldId(idx, fmt); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2650:7: note: in expansion of macro 'LOAD_FIELD' 2650 | LOAD_FIELD(field, index, "method_handle_item field_idx", return false); | ^~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:165:23: note: remove parentheses 165 | const dex::FieldId* (var) = CheckLoadFieldId(idx, fmt); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2650:7: note: in expansion of macro 'LOAD_FIELD' 2650 | LOAD_FIELD(field, index, "method_handle_item field_idx", return false); | ^~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:158:24: warning: unnecessary parentheses in declaration of 'method' [-Wparentheses] 158 | const dex::MethodId* (var) = CheckLoadMethodId(idx, error_string); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2658:7: note: in expansion of macro 'LOAD_METHOD' 2658 | LOAD_METHOD(method, index, "method_handle_item method_idx", return false); | ^~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:158:24: note: remove parentheses 158 | const dex::MethodId* (var) = CheckLoadMethodId(idx, error_string); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2658:7: note: in expansion of macro 'LOAD_METHOD' 2658 | LOAD_METHOD(method, index, "method_handle_item method_idx", return false); | ^~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc: In member function 'bool art::DexFileVerifier::CheckInterClassDataItem()': art/libdexfile/dex/dex_file_verifier.cc:165:23: warning: unnecessary parentheses in declaration of 'field' [-Wparentheses] 165 | const dex::FieldId* (var) = CheckLoadFieldId(idx, fmt); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2723:5: note: in expansion of macro 'LOAD_FIELD' 2723 | LOAD_FIELD(field, read_field.GetIndex(), "inter_class_data_item field_id", return false) | ^~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:165:23: note: remove parentheses 165 | const dex::FieldId* (var) = CheckLoadFieldId(idx, fmt); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2723:5: note: in expansion of macro 'LOAD_FIELD' 2723 | LOAD_FIELD(field, read_field.GetIndex(), "inter_class_data_item field_id", return false) | ^~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:158:24: warning: unnecessary parentheses in declaration of 'method' [-Wparentheses] 158 | const dex::MethodId* (var) = CheckLoadMethodId(idx, error_string); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2736:5: note: in expansion of macro 'LOAD_METHOD' 2736 | LOAD_METHOD(method, it->GetIndex(), "inter_class_data_item method_id", return false) | ^~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:158:24: note: remove parentheses 158 | const dex::MethodId* (var) = CheckLoadMethodId(idx, error_string); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2736:5: note: in expansion of macro 'LOAD_METHOD' 2736 | 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:165:23: warning: unnecessary parentheses in declaration of 'field' [-Wparentheses] 165 | const dex::FieldId* (var) = CheckLoadFieldId(idx, fmt); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2766:5: note: in expansion of macro 'LOAD_FIELD' 2766 | LOAD_FIELD(field, field_item->field_idx_, "inter_annotations_directory_item field_id", | ^~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:165:23: note: remove parentheses 165 | const dex::FieldId* (var) = CheckLoadFieldId(idx, fmt); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2766:5: note: in expansion of macro 'LOAD_FIELD' 2766 | LOAD_FIELD(field, field_item->field_idx_, "inter_annotations_directory_item field_id", | ^~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:158:24: warning: unnecessary parentheses in declaration of 'method' [-Wparentheses] 158 | const dex::MethodId* (var) = CheckLoadMethodId(idx, error_string); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2783:5: note: in expansion of macro 'LOAD_METHOD' 2783 | LOAD_METHOD(method, method_item->method_idx_, "inter_annotations_directory_item method_id", | ^~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:158:24: note: remove parentheses 158 | const dex::MethodId* (var) = CheckLoadMethodId(idx, error_string); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2783:5: note: in expansion of macro 'LOAD_METHOD' 2783 | LOAD_METHOD(method, method_item->method_idx_, "inter_annotations_directory_item method_id", | ^~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:158:24: warning: unnecessary parentheses in declaration of 'parameter_method' [-Wparentheses] 158 | const dex::MethodId* (var) = CheckLoadMethodId(idx, error_string); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2800:5: note: in expansion of macro 'LOAD_METHOD' 2800 | LOAD_METHOD(parameter_method, parameter_item->method_idx_, | ^~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:158:24: note: remove parentheses 158 | const dex::MethodId* (var) = CheckLoadMethodId(idx, error_string); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2800:5: note: in expansion of macro 'LOAD_METHOD' 2800 | LOAD_METHOD(parameter_method, parameter_item->method_idx_, | ^~~~~~~~~~~ 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) \ | ^ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/gc/collector/mark_sweep.cc art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/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-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/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++/14.2.0/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++/14.2.0/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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62, from art/runtime/base/quasi_atomic.h:23: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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/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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/list:62, from art/runtime/class_linker.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/gc/collector/partial_mark_sweep.cc 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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/gc/collector/semi_space.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_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\ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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/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/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/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::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/gc_root.h:22, from art/runtime/class_linker.h:34: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/sticky_mark_sweep.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ In file included from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/functional:63, from libbase/include/android-base/logging.h:60, from art/runtime/art_method.h:23: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libart <= art/runtime/gc/gc_cause.cc In file included from art/runtime/gc_root.h:22, from art/runtime/class_linker.h:34: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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-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\ | ^ 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\ | ^ 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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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) \ | ^ 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 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_root.h:22: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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++/14.2.0/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++/14.2.0/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/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:39: art/runtime/managed_stack.h:167:23: warning: 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/gc/heap.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67, from /usr/include/c++/14.2.0/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/gc/reference_processor.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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ In file included from art/runtime/base/locks.h:25, from art/runtime/gc_root.h:20, from art/runtime/art_method.h:38: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' In file included from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' In file included from art/runtime/gc_root.h:22: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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\ | ^ 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\ | ^ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/list:79: 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.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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/gc/reference_queue.cc In file included from art/runtime/stack_reference.h:21, from art/runtime/handle.h:28, from art/runtime/cha.h:25: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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::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/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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::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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from art/runtime/cha.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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 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::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::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::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::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::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::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::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::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::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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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::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_); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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 '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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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/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\ | ^ 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) \ | ^ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map: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/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/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/gc/scoped_gc_critical_section.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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/functional:63, from art/libdexfile/dex/dex_file_types.h:22, from art/runtime/art_field.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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.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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 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/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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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::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 '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/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 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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_; | ^ 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); | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ art/libdexfile/dex/dex_file_verifier.cc: At global scope: art/libdexfile/dex/dex_file_verifier.cc:955:6: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 955 | bool DexFileVerifier::CheckOrder(const char* type_descr, | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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 { | ^~~~~~~~~~~~ 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) \ | ^ In file included from /usr/include/c++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/ext/concurrence.h:34, from /usr/include/c++/14.2.0/bits/shared_ptr_base.h:62, from /usr/include/c++/14.2.0/bits/shared_ptr.h:53, from /usr/include/c++/14.2.0/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart <= art/runtime/gc/space/bump_pointer_space.cc 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++/14.2.0/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++/14.2.0/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/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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' In file included from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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:189:7: warning: this statement may fall through [-Wimplicit-fallthrough=] 189 | if (UNLIKELY(!is_return_type)) { | ^~ art/libdexfile/dex/dex_file_verifier.cc:194:5: note: here 194 | case 'B': | ^~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/gc/allocator/dlmalloc.cc:40:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 40 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/gc/space/dlmalloc_space.cc In file included from art/runtime/gc_root.h:22: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/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/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_; | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ art/runtime/gc/allocator/dlmalloc.cc:40:32: note: did you mean '-Wno-pointer-arith'? cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/functional:63, from art/libdexfile/dex/dex_file_types.h:22, from art/runtime/art_field.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from art/runtime/class_loader_context.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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/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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/gc/space/image_space.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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' In file included from art/runtime/gc_root.h:22, from art/runtime/art_field.h:23, from art/runtime/art_field-inl.h:20: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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]' 465 | access_to->GetClassLoader()); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:526:40: required from here 526 | return ResolvedFieldAccessTest(access_to, field, dex_cache, field_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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/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/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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/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) \ | ^ 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/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]' 87 | return GetLengthFromCount(GetCount()); | ~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/string-inl.h:46:28: required from here 46 | int32_t count = GetLength(); | ~~~~~~~~~^~ 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/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\ | ^ 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/list:62, from art/runtime/class_linker.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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/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_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\ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/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) \ | ^ 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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' In file included from art/runtime/gc_root.h:22, from art/runtime/class_linker.h:34: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/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++/14.2.0/bits/stl_iterator.h:64, from /usr/include/c++/14.2.0/bits/range_access.h:38, from /usr/include/c++/14.2.0/string_view:51, from art/runtime/common_throws.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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: { | ^~~~~~~ art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' host C++: libart <= art/runtime/gc/space/large_object_space.cc 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-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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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++/14.2.0/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++/14.2.0/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/list:79: 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/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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ 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/libartbase/base/atomic.h:41:22: note: remove the '< >' In file included from /usr/include/c++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62, from art/runtime/fault_handler.h:24: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 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 /usr/include/c++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from art/runtime/class_table.h:20: /usr/include/c++/14.2.0/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/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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] 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/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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_)); | ^~~~~~~~~~~~~~~ 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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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::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/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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::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:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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/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 '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/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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] In file included from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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++/14.2.0/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/stl_tree.h:63, from /usr/include/c++/14.2.0/set:62, from art/runtime/debugger.h:26: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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/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/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++/14.2.0/bits/stl_construct.h:61, from /usr/include/c++/14.2.0/bits/stl_tempbuf.h:61, from /usr/include/c++/14.2.0/memory:66, from art/libdexfile/dex/dex_file.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/runtime/gc_root.h:22, from art/runtime/class_table.h:28: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' In file included from art/runtime/gc_root.h:22, from art/runtime/class_linker.h:34: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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_root.h:22, from art/runtime/gc/allocation_record.h:24: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/space/malloc_space.cc In file included from art/runtime/mirror/object.h:25, from art/runtime/debug_print.h:21: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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++/14.2.0/bits/stl_construct.h:61, from /usr/include/c++/14.2.0/bits/stl_tempbuf.h:61, from /usr/include/c++/14.2.0/memory:66, from art/runtime/gc/accounting/bitmap.h:22: /usr/include/c++/14.2.0/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/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ In file included from art/runtime/gc_root.h:22, from art/runtime/runtime.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/set:79: 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/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) \ | ^ 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/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/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) \ | ^ 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 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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' In file included from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' host C++: libart <= art/runtime/gc/space/region_space.cc 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/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/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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:25, from art/runtime/handle_scope.h:25, from art/runtime/class_loader_context.h:26: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/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++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ In file included from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/list:62, from art/runtime/gc/allocation_record.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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/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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from /usr/include/c++/14.2.0/bits/locale_classes.h:40, from /usr/include/c++/14.2.0/bits/ios_base.h:41, from /usr/include/c++/14.2.0/ios:44, from /usr/include/c++/14.2.0/istream:40, from /usr/include/c++/14.2.0/sstream:40, from art/runtime/debug_print.cc:17: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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, 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\ | ^ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67: 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/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/rosalloc_space.cc In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86, 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); | ^~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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 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\ | ^ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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-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/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/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); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/accounting/mod_union_table.h:25: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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 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/gc/space/space.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/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) \ | ^ 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/gc/space/zygote_space.cc 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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ In file included from /usr/include/c++/14.2.0/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); | ^~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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); | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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: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/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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\ | ^ 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\ | ^ host C++: libart <= art/runtime/gc/task_processor.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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/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/locks.h:25, from art/runtime/handle.h:23, from art/runtime/dex/dex_file_annotations.h:21: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ In file included from art/runtime/stack_reference.h:21, from art/runtime/handle.h:28: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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\ | ^ 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) \ | ^ 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/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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++/14.2.0/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/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_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' In file included from /usr/include/c++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/ext/concurrence.h:34, from /usr/include/c++/14.2.0/bits/shared_ptr_base.h:62, from /usr/include/c++/14.2.0/bits/shared_ptr.h:53, from /usr/include/c++/14.2.0/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/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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 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/gc/verification.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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/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\ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 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/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/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; | ^~~~~~ 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) \ | ^ 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/hidden_api.cc 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/gc_root.h:22, 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/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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: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/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/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/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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 { | ^~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/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\ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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/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-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/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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\ | ^ 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 host C++: libart <= art/runtime/hprof/hprof.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/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) \ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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) \ | ^ 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) \ | ^ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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: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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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_; | ^ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/gc_root.h:22, from art/runtime/gc/collector/garbage_collector.h:28: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/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/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/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\ | ^ 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); | ^~~~~~~~ host C++: libart <= art/runtime/image.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_; | ^ 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 art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/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/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/index_bss_mapping.cc 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) \ | ^ In file included from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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/indirect_reference_table.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/list:79, from art/runtime/monitor.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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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 { | ^~~~~~~~~~~~ host C++: libart <= art/runtime/instrumentation.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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_; | ^ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/monitor_pool.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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] In file included from art/runtime/gc_root.h:22, from art/runtime/gc/collector/garbage_collector.h:28, from art/runtime/gc/collector/semi_space.h:25: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' In file included from art/runtime/gc_root.h:22, from art/runtime/art_field.h:23, from art/runtime/art_field-inl.h:20: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/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\ | ^ 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-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\ | ^ host C++: libart <= art/runtime/intern_table.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/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\ | ^ 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) \ | ^ 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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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 { | ^~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 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) \ | ^ host C++: libart <= art/runtime/interpreter/interpreter.cc In file included from art/runtime/mirror/object.h:25, 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/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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\ | ^ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/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 '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); | ^~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 '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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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/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_root.h:22, from art/runtime/gc/collector/garbage_collector.h:28, from art/runtime/gc/collector/mark_sweep.h:26: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 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 /usr/include/c++/14.2.0/bits/stl_construct.h:61, from /usr/include/c++/14.2.0/bits/stl_tempbuf.h:61, from /usr/include/c++/14.2.0/memory:66, from art/runtime/gc/accounting/space_bitmap.h:22: /usr/include/c++/14.2.0/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/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++/14.2.0/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++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/list:62, from art/runtime/gc/collector/garbage_collector.h:21: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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) \ | ^ 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) \ | ^ 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/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/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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] 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_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/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-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/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/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) \ | ^ 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.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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' In file included from art/runtime/gc_root.h:22, from art/runtime/gc/collector/garbage_collector.h:28: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/gc_root.h:22, from art/runtime/art_field.h:23, from art/runtime/art_field-inl.h:20: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/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/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/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/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\ | ^ 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/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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++: libart <= art/runtime/interpreter/interpreter_cache.cc 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) \ | ^ 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/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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); | ^~~~~~~~ art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62, from art/runtime/base/locks.h:23: /usr/include/c++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++/14.2.0/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++/14.2.0/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/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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/ext/concurrence.h:34, from /usr/include/c++/14.2.0/bits/shared_ptr_base.h:62, from /usr/include/c++/14.2.0/bits/shared_ptr.h:53, from /usr/include/c++/14.2.0/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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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 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: 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++/14.2.0/bits/stl_construct.h:61, from /usr/include/c++/14.2.0/bits/stl_tempbuf.h:61, from /usr/include/c++/14.2.0/memory:66: /usr/include/c++/14.2.0/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++/14.2.0/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/interpreter/interpreter_common.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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/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\ | ^ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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: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/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\ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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_; | ^ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/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; | ^~~~~ 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) \ | ^ 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: At global scope: art/runtime/thread.h:1574:27: warning: 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++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/ext/concurrence.h:34, from /usr/include/c++/14.2.0/bits/shared_ptr_base.h:62, from /usr/include/c++/14.2.0/bits/shared_ptr.h:53, from /usr/include/c++/14.2.0/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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:39: art/runtime/managed_stack.h:167:23: warning: 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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/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) \ | ^ 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/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/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/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) | ^~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc_root.h:22, from art/runtime/gc/collector/garbage_collector.h:28, from art/runtime/gc/collector/concurrent_copying.h:20, from art/runtime/gc/reference_queue.cc:21: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ 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/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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 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:39: art/runtime/managed_stack.h:167:23: warning: 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 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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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/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 'art::ImageSection& art::ImageHeader::GetImageSection(ImageSections)': 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.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/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 '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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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/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/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_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t 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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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: At global scope: art/runtime/thread.h:1574:27: warning: 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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included 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/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62, from art/libartbase/base/atomic.h:23: /usr/include/c++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/list:79: 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: 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++/14.2.0/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/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++/14.2.0/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 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_; | ^~~~~~~~~~~~~~~~~~~~~~~ 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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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); | ^~~~~~~~ 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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86: 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/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/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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/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 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/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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 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/interpreter/interpreter_intrinsics.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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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) \ | ^ 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: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 '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 '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); | ^~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/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 '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.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-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\ | ^ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86: 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/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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86, 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/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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/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, 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++/14.2.0/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++/14.2.0/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\ | ^ 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62: /usr/include/c++/14.2.0/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++/14.2.0/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 { | ^~~~~~~~~~~~ host C++: libart <= art/runtime/interpreter/interpreter_switch_impl1.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/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: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) \ | ^ host C++: libart <= art/runtime/interpreter/interpreter_switch_impl0.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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: At global scope: art/runtime/thread.h:1574:27: warning: 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/thread.h:1617:18: warning: ignoring 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.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:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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/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/runtime/mirror/object.h:25, 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/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 '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::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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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 '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.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:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::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 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/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 '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.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/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/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/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/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/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) | ^~~~~~~~~~~~~~~~~~~ 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/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) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14.2.0/bits/stl_construct.h:61, from /usr/include/c++/14.2.0/bits/stl_tempbuf.h:61, from /usr/include/c++/14.2.0/memory:66, from art/runtime/gc/allocator/rosalloc.h:23: /usr/include/c++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ 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) | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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/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/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/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/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/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/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/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/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/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/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) | ^~~~~~~~~~~~~~~~~~~ art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included 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/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/ext/concurrence.h:34, from /usr/include/c++/14.2.0/bits/shared_ptr_base.h:62, from /usr/include/c++/14.2.0/bits/shared_ptr.h:53, from /usr/include/c++/14.2.0/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_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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 '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 '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/object.h:24: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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::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-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\ | ^ 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/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/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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/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/mirror/object.h:25, from art/runtime/image.h:24, from art/runtime/gc/space/image_space.h:21: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/interpreter/interpreter_switch_impl2.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 '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 '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.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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86: 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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/list:79: 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 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); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/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/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++/14.2.0/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++/14.2.0/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 { | ^~~~~~~~ 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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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_switch_impl.h:20, from art/runtime/interpreter/interpreter_switch_impl-inl.h:20, from art/runtime/interpreter/interpreter_switch_impl1.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/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 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: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 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; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 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: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) \ | ^ 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/interpreter/interpreter_switch_impl3.cc In file included from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/interpreter/lock_count_data.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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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::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:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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.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/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_intrinsics.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 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/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\ | ^ host C++: libart <= art/runtime/interpreter/shadow_frame.cc art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++/14.2.0/bits/stl_construct.h:61, from /usr/include/c++/14.2.0/bits/stl_tempbuf.h:61, from /usr/include/c++/14.2.0/memory:66, from art/runtime/gc/space/space.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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/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/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.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_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/object.h:25, from art/runtime/mirror/class.h:31: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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++/14.2.0/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++/14.2.0/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++/14.2.0/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 /usr/include/c++/14.2.0/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); | ^~~~~~~~~~~~~~~ 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/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/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' In file included from /usr/include/c++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/ext/concurrence.h:34, from /usr/include/c++/14.2.0/bits/shared_ptr_base.h:62, from /usr/include/c++/14.2.0/bits/shared_ptr.h:53, from /usr/include/c++/14.2.0/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/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/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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++/14.2.0/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/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/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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 { | ^~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from art/runtime/gc/reference_queue.h:21: /usr/include/c++/14.2.0/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++/14.2.0/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/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/interpreter/unstarted_runtime.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_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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/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/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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::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::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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 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 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 '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; | ^~~~~~~~~ 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/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/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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 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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67: 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(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/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/gc_root.h:22: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' In file included from art/libdexfile/dex/code_item_accessors-inl.h:24, from art/libdexfile/dex/class_accessor-inl.h:26: In static member function 'static const art::dex::TryItem* art::DexFile::GetTryItems(const art::DexInstructionIterator&, uint32_t)', inlined from 'static const uint8_t* art::DexFile::GetCatchHandlerData(const art::DexInstructionIterator&, uint32_t, uint32_t)' at art/libdexfile/dex/dex_file-inl.h:449:51, inlined from 'const uint8_t* art::CodeItemDataAccessor::GetCatchHandlerData(size_t) const' at art/libdexfile/dex/code_item_accessors-inl.h:137:38, inlined from 'bool art::DexFileVerifier::CheckAndGetHandlerOffsets(const art::dex::CodeItem*, uint32_t*, uint32_t)' at art/libdexfile/dex/dex_file_verifier.cc:533:62: art/libdexfile/dex/dex_file-inl.h:167:11: warning: 'accessor.art::CodeItemDataAccessor::tries_size_' may be used uninitialized [-Wmaybe-uninitialized] 167 | 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:532:24: note: 'accessor.art::CodeItemDataAccessor::tries_size_' was declared here 532 | CodeItemDataAccessor accessor(*dex_file_, code_item); | ^~~~~~~~ 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++/14.2.0/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/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++/14.2.0/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++/14.2.0/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/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/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/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop 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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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::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:1617:18: warning: ignoring packed attribute 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 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_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.h:39: art/runtime/managed_stack.h:167:23: warning: 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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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++/14.2.0/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::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_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++/14.2.0/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++/14.2.0/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::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::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::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 '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::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::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/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::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::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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/java_frame_root_info.cc 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/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 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 '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/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/runtime/base/locks.h:25: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/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++/14.2.0/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/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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) \ | ^ host C++: libart <= art/runtime/jdwp/jdwp_event.cc 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/jdwp/jdwp_expand_buf.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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/gc_root.h:22, from art/runtime/art_field.h:23, from art/runtime/art_field-inl.h:20: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67: 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 '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 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:39: art/runtime/managed_stack.h:167:23: warning: 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/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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_); | ^~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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: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 { | ^~~~~~~~~~~~ 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::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/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 { | ^~~~~~~~ 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/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/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++/14.2.0/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/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 '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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/functional:63, from art/libdexfile/dex/dex_file_types.h:22, from art/runtime/art_field.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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 '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; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/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/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/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-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\ | ^ art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart <= art/runtime/jdwp/jdwp_handler.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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 { | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/algorithm:60, from art/runtime/index_bss_mapping.cc:17: /usr/include/c++/14.2.0/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++/14.2.0/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 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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] 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: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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::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/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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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++/14.2.0/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++/14.2.0/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++/14.2.0/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62, from art/runtime/base/locks.h:23: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/ext/concurrence.h:34, from /usr/include/c++/14.2.0/bits/shared_ptr_base.h:62, from /usr/include/c++/14.2.0/bits/shared_ptr.h:53, from /usr/include/c++/14.2.0/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/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/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_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/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++/14.2.0/bits/stl_construct.h:61, from /usr/include/c++/14.2.0/bits/stl_tempbuf.h:61, from /usr/include/c++/14.2.0/memory:66, from art/runtime/gc/accounting/space_bitmap.h:22: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from art/runtime/gc/heap.h:21: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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/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++/14.2.0/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++/14.2.0/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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc_root.h:22, from art/runtime/indirect_reference_table.h:32: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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 /usr/include/c++/14.2.0/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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/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/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) \ | ^ 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/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 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; | ^~~~~~ 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-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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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++/14.2.0/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++/14.2.0/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/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/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 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::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::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_), | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop 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/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/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/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/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::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::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 '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/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 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::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::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::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::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::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::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::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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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) \ | ^ 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/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.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/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::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 '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::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::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::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::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 '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 '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::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::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/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::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_switch_impl-inl.h:1039: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 1039 | #pragma clang diagnostic pop 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/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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/jdwp/jdwp.h:20, from art/runtime/jdwp/jdwp_expand_buf.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/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/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) \ | ^ 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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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, 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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 { | ^~~~~~~~ In file included from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' /usr/include/c++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/mirror/object.h:25: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/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: 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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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 '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] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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/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 '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] libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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: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 '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.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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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/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 '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: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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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::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::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 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::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::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::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::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/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: At global scope: art/runtime/thread.h:1574:27: warning: 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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/deque:62, from art/runtime/gc/space/region_space.cc:16: /usr/include/c++/14.2.0/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/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++/14.2.0/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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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/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: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 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::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.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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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 '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.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:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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 '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 '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: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::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 '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); | ^~~~~~~~ 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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/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++/14.2.0/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++/14.2.0/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/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart <= art/runtime/jdwp/jdwp_main.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/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/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 '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); | ^~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ In file included from art/runtime/mirror/object.h:25, from art/runtime/mirror/class.h:31: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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 '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.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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/iterator:61, from art/libartbase/base/iteration_range.h:20, from art/runtime/image.h:23: /usr/include/c++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/deque: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.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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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::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_); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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_request.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-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/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 '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-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/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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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::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_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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 '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: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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/ext/concurrence.h:34, from /usr/include/c++/14.2.0/bits/shared_ptr_base.h:62, from /usr/include/c++/14.2.0/bits/shared_ptr.h:53, from /usr/include/c++/14.2.0/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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\ | ^ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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::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:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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::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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/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/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; | ^~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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-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::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 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::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::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::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::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::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: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::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: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::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::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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/ext/concurrence.h:34, from /usr/include/c++/14.2.0/bits/shared_ptr_base.h:62, from /usr/include/c++/14.2.0/bits/shared_ptr.h:53, from /usr/include/c++/14.2.0/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.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 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/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/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/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 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 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::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/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 '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 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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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: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::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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/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 libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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: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/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/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 '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/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 '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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(); | ^~~~~~~~~ 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:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/runtime/jdwp/jdwp_handler.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/runtime/jdwp/jdwp_handler.cc: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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/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_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 '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/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/gc_root.h:22: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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_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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/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++/14.2.0/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++/14.2.0/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, 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++/14.2.0/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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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::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::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: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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 '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 '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::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::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::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/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/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); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 '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::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_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 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 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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 '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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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: 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++/14.2.0/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++/14.2.0/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++/14.2.0/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:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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/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 '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] libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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::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/debugger.h:39, from art/runtime/jdwp/jdwp_handler.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 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/jdwp/object_registry.cc libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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: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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++/14.2.0/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++/14.2.0/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-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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/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/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 '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: At global scope: art/runtime/thread.h:1574:27: warning: 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 '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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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/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 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/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/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/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 '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/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/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/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop 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/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 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 '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/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/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/libdexfile/dex/dex_file_verifier.cc: In member function 'bool art::DexFileVerifier::CheckIntraCodeItem()': art/libdexfile/dex/dex_file_verifier.cc:1241:3: warning: 'accessor.art::CodeItemDataAccessor::registers_size_' may be used uninitialized [-Wmaybe-uninitialized] 1241 | if (UNLIKELY(accessor.InsSize() > accessor.RegistersSize())) { | ^~ art/libdexfile/dex/dex_file_verifier.cc:1240:24: note: 'accessor.art::CodeItemDataAccessor::registers_size_' was declared here 1240 | CodeItemDataAccessor accessor(*dex_file_, code_item); | ^~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:1241:3: warning: 'accessor.art::CodeItemDataAccessor::ins_size_' may be used uninitialized [-Wmaybe-uninitialized] 1241 | if (UNLIKELY(accessor.InsSize() > accessor.RegistersSize())) { | ^~ art/libdexfile/dex/dex_file_verifier.cc:1240:24: note: 'accessor.art::CodeItemDataAccessor::ins_size_' was declared here 1240 | 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:1247:40: warning: 'accessor.art::CodeItemDataAccessor::outs_size_' may be used uninitialized [-Wmaybe-uninitialized] 1247 | 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:1240:24: note: 'accessor.art::CodeItemDataAccessor::outs_size_' was declared here 1240 | CodeItemDataAccessor accessor(*dex_file_, code_item); | ^~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:1266:48: warning: 'accessor.art::CodeItemDataAccessor::tries_size_' may be used uninitialized [-Wmaybe-uninitialized] 1266 | uint32_t try_items_size = accessor.TriesSize(); | ^ art/libdexfile/dex/dex_file_verifier.cc:1240:24: note: 'accessor.art::CodeItemDataAccessor::tries_size_' was declared here 1240 | CodeItemDataAccessor accessor(*dex_file_, code_item); | ^~~~~~~~ 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 '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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/stl_tree.h:63, from /usr/include/c++/14.2.0/set:62, from art/runtime/hprof/hprof.cc:36: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86: 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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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/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::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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); | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/14.2.0/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 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/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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/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); | ^~~~~~~~ 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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: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/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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 '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] 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: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 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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: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_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++/14.2.0/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++/14.2.0/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++/14.2.0/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: 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: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/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/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::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/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++/14.2.0/bits/stl_construct.h:61, from /usr/include/c++/14.2.0/bits/stl_tempbuf.h:61, from /usr/include/c++/14.2.0/memory:66, from art/runtime/gc/space/space.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67: 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::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 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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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/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 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/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: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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); | ^~~~~~~~~~~~~~~ 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); | ^~~~~~~~ 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_), | ^~~~~~~~~~~~~~~~~~~~~~~ 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.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); | ^~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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: 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: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::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 '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; | ^~~~~~ 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::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 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::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::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/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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] 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/object.h:24: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/ext/concurrence.h:34, from /usr/include/c++/14.2.0/bits/shared_ptr_base.h:62, from /usr/include/c++/14.2.0/bits/shared_ptr.h:53, from /usr/include/c++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 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::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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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/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 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::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::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 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::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::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::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/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::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/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: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::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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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/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 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++/14.2.0/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_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 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++/14.2.0/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++/14.2.0/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 '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 '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:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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.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::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/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/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::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 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 '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::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/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::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 '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::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/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 '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/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, 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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 '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: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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/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::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: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::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/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++/14.2.0/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/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++/14.2.0/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: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++/14.2.0/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/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::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 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/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/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) { | ^~ | & 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++/14.2.0/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++/14.2.0/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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.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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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.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::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-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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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/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/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::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::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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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 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/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-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::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 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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(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/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ 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/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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::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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62, from art/runtime/base/locks.h:23: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 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/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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-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-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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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::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/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 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: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::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::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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.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::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::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::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::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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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.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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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-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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_set.h:33, from /usr/include/c++/14.2.0/unordered_set:41, from art/runtime/intern_table.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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::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/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::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/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::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/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: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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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: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::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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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::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: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::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/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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: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/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++/14.2.0/bits/stl_construct.h:61, from /usr/include/c++/14.2.0/bits/stl_tempbuf.h:61, from /usr/include/c++/14.2.0/memory:66, from art/runtime/gc/space/space.h:20: /usr/include/c++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/ext/concurrence.h:34, from /usr/include/c++/14.2.0/bits/shared_ptr_base.h:62, from /usr/include/c++/14.2.0/bits/shared_ptr.h:53, from /usr/include/c++/14.2.0/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/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_), | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 { | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/bits/stl_construct.h:61, from /usr/include/c++/14.2.0/bits/stl_tempbuf.h:61, from /usr/include/c++/14.2.0/memory:66: /usr/include/c++/14.2.0/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++/14.2.0/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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::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/gc_root.h:22, from art/runtime/intern_table.h:27: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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 '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:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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::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::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/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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 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_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::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_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 '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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' 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/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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; | ^~~~~~ host C++: libart <= art/runtime/jit/debugger_interface.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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62, from art/runtime/base/locks.h:23: /usr/include/c++/14.2.0/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++/14.2.0/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_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/14.2.0/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 '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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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/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::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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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 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::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_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 '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/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_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/gc_root.h:22, from art/runtime/instrumentation.h:30: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ 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/object_reference.h:167:34: note: remove the '< >' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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::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/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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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.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::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::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 '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::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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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-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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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) \ | ^ In file included from art/runtime/gc_root.h:22, from art/runtime/art_field.h:23, from art/runtime/common_dex_operations.h:21: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/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]' 465 | access_to->GetClassLoader()); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:526:40: required from here 526 | return ResolvedFieldAccessTest(access_to, field, dex_cache, field_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/list:79, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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: 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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: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-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; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 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\ | ^ 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 '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/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/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 '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 /usr/include/c++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/ext/concurrence.h:34, from /usr/include/c++/14.2.0/bits/shared_ptr_base.h:62, from /usr/include/c++/14.2.0/bits/shared_ptr.h:53, from /usr/include/c++/14.2.0/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/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::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/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/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::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_); | ^~~~~~~~~~~~~~~ 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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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::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/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++/14.2.0/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++/14.2.0/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, 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++/14.2.0/bits/stl_construct.h:61, from /usr/include/c++/14.2.0/bits/stl_tempbuf.h:61, from /usr/include/c++/14.2.0/memory:66, from art/runtime/gc/collector/mark_sweep.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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/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::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/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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 '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/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++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/ext/concurrence.h:34, from /usr/include/c++/14.2.0/bits/shared_ptr_base.h:62, from /usr/include/c++/14.2.0/bits/shared_ptr.h:53, from /usr/include/c++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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/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 { | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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/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/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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62, from art/runtime/base/locks.h:23: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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::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-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::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::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::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: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/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::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/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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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\ | ^ 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++/14.2.0/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/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++/14.2.0/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++/14.2.0/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/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::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.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::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 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_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 '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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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 '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] 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/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::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: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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::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<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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_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/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 '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::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/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, 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++/14.2.0/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++/14.2.0/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++/14.2.0/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:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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/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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62, from art/runtime/base/locks.h:23: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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-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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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::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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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.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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/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::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::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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62, from art/runtime/base/locks.h:23: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/jit/jit.cc 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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: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/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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] 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++/14.2.0/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++/14.2.0/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: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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/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/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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_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++/14.2.0/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++/14.2.0/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++/14.2.0/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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/set:79: 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 '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 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/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++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/ext/concurrence.h:34, from /usr/include/c++/14.2.0/bits/shared_ptr_base.h:62, from /usr/include/c++/14.2.0/bits/shared_ptr.h:53, from /usr/include/c++/14.2.0/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 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::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/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 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::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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/list:62, from art/runtime/instrumentation.h:21: /usr/include/c++/14.2.0/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/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++/14.2.0/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++/14.2.0/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/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); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/ext/concurrence.h:34, from /usr/include/c++/14.2.0/bits/shared_ptr_base.h:62, from /usr/include/c++/14.2.0/bits/shared_ptr.h:53, from /usr/include/c++/14.2.0/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/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 '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/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/gc_root.h:22, from art/runtime/art_field.h:23, from art/runtime/art_field-inl.h:20: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/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 '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 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::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/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::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::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::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/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-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::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: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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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::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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] 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/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:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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_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::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/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::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/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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++/14.2.0/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++/14.2.0/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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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::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::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: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 instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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: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-current-inl.h:20, 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\ | ^ In file included from art/runtime/jit/debugger_interface.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/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/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86: 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/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/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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' 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/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/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/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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] 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/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | 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); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc_root.h:22, from art/runtime/java_frame_root_info.h:24: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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.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/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::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 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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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::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); | ^~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, 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/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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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::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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 '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 '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] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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: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: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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_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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/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/gc_root.h:22, from art/runtime/read_barrier.h:25, from art/runtime/interpreter/shadow_frame.h:27: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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: 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++/14.2.0/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++/14.2.0/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++/14.2.0/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 '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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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 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/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/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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 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/gc_root.h:22, from art/runtime/art_field.h:23, from art/runtime/art_field-inl.h:20: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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::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::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/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::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/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/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/interpreter/interpreter_switch_impl-inl.h:29: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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.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/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/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::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/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/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/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 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_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++/14.2.0/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++/14.2.0/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++/14.2.0/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(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/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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 '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/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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: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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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(); | ^~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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 '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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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.h:25, from art/runtime/mirror/object-inl.h:20: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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++/14.2.0/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++/14.2.0/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++/14.2.0/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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 '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] 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 '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] 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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/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<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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::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/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/interpreter/interpreter_switch_impl-inl.h:29: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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::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: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ 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/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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::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/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/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_)); | ^~~~~~~~~~~~~~~ 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/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_)); | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62, from art/runtime/base/locks.h:23: /usr/include/c++/14.2.0/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/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:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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_)); | ^~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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: 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_; | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ In file included from /usr/include/c++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/ext/concurrence.h:34, from /usr/include/c++/14.2.0/bits/shared_ptr_base.h:62, from /usr/include/c++/14.2.0/bits/shared_ptr.h:53, from /usr/include/c++/14.2.0/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/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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; | ^~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 '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/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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(); | ^~~~~~~~~ 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/jit/profiling_info.cc In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 { | ^~~~~~~~ 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 /usr/include/c++/14.2.0/bits/stl_construct.h:61, from /usr/include/c++/14.2.0/bits/stl_tempbuf.h:61, from /usr/include/c++/14.2.0/memory:66: /usr/include/c++/14.2.0/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++/14.2.0/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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::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: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::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/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::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_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/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::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::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/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:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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++/14.2.0/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_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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::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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from art/runtime/interpreter/shadow_frame.h:22: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map:58, from /usr/include/c++/14.2.0/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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 '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; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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: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::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/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/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::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::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::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.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::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_root.h:22, from art/runtime/art_field.h:23, from art/runtime/art_field-inl.h:20: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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 '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:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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: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.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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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-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 '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/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/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/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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62, from art/runtime/base/locks.h:23: /usr/include/c++/14.2.0/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/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++/14.2.0/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++/14.2.0/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/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_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/jit/profile_saver.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 '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::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::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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67, 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); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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:39: art/runtime/managed_stack.h:167:23: warning: 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::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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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: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/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ 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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62, from art/runtime/base/locks.h:23: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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 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++/14.2.0/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++/14.2.0/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/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 { | ^~~~~~~~ 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62, from art/runtime/base/locks.h:23: /usr/include/c++/14.2.0/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 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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86: 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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); | ^~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 '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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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: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: 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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47: /usr/include/c++/14.2.0/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/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/14.2.0/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_), | ^~~~~~~~~~~~~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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/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/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/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/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/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: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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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 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, 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++/14.2.0/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++/14.2.0/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++/14.2.0/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); | ^~~~~~~~ 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-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::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::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::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::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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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::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/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) \ | ^ 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/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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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 '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::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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-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::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::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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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 '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.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-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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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::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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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-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 '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-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::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-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::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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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/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_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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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_), | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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-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-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::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::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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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::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/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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62, from art/libartbase/base/atomic.h:23: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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_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: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; | ^~~~~~ 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/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::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/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::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:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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.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::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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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/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 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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 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::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: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: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::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/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/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); | ^~~~~~~~ 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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/interpreter/interpreter_switch_impl-inl.h:29: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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: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/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: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, 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/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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/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 '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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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 '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/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86: 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:39: art/runtime/managed_stack.h:167:23: warning: 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::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/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/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::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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/algorithm:60, from art/runtime/jdwp/jdwp_handler.cc:17: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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: 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++/14.2.0/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++/14.2.0/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++/14.2.0/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/list:79: 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::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 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/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/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/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/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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62, from art/libartbase/base/atomic.h:23: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/interpreter/interpreter_switch_impl-inl.h:29: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 '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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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::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/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 '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/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 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::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:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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 '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: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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::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_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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/jni/check_jni.cc host C++: libart <= art/runtime/jni/java_vm_ext.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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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) \ | ^ 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/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::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_), | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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_), | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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 '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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86: 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/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/gc_root.h:22, from art/runtime/class_linker.h:34: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from libbase/include/android-base/stringprintf.h:21, from art/runtime/jdwp/jdwp_main.cc:23: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/jni/jni_env_ext.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/runtime/gc_root.h:22, from art/runtime/class_linker.h:34: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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 C++: libart <= art/runtime/jni/jni_internal.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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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\ | ^ 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-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/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/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) \ | ^ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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:25: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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\ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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_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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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/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::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.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++/14.2.0/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++/14.2.0/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/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 '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_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::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/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 '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 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/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 '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 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::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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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/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::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/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.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-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::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/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::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/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::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::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/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::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::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 '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::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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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 { | ^~~~~~ 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_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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 art/runtime/gc_root.h:22, from art/runtime/class_linker.h:34: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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 '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::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_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::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::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/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::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/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++/14.2.0/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; | ^~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 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.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::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 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/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 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) | ~~~~~~~~~^~~~~ In file included from /usr/include/c++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from libbase/include/android-base/stringprintf.h:21, from art/runtime/jdwp/jdwp_socket.cc:29: /usr/include/c++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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_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++/14.2.0/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++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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::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::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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 '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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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; | ^~~~~~ host C++: libart <= art/runtime/linear_alloc.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/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::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: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::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++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/ext/concurrence.h:34, from /usr/include/c++/14.2.0/bits/shared_ptr_base.h:62, from /usr/include/c++/14.2.0/bits/shared_ptr.h:53, from /usr/include/c++/14.2.0/memory:80, from art/runtime/jdwp/jdwp_handler.cc: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 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/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/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86: 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/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 '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] 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 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_); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86: 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 '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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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::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/managed_stack.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/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 '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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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/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 '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/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: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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 { | ^~~~~~~~ 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/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/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ 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/object_reference.h:167:34: note: remove the '< >' /usr/include/c++/14.2.0/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/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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 instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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; | ^~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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.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/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::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::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_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc_root.h:22, from art/runtime/class_linker.h:34: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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 '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::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/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++/14.2.0/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/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++/14.2.0/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/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++/14.2.0/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/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 '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/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 '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/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::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 '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/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::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/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/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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::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; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67: 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: At global scope: art/runtime/thread.h:1574:27: warning: 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 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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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-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-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\ | ^ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_reference.h:21, from art/runtime/handle.h:28: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/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/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::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::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::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::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::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: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::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: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/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: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/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::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 '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::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.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::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::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-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 '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::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 '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/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++/14.2.0/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++/14.2.0/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/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/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/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/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_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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) \ | ^ 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/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/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/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::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/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_)); | ^~~~~~~~~~~~~~~ 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::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/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_), | ^~~~~~~~~~~~~~~~~~~~~~~ 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 In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67: 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/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/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::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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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/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 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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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::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 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::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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_)); | ^~~~~~~~~~~~~~~ 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/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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86: 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/jit/jit_code_cache.cc:249:5: warning: multi-line comment [-Wcomment] 249 | // | non exec 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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 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 { | ^~~~~~~~~~~~ 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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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::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.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::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 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/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/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/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 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 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/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 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 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 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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: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/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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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::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::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 instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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::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/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/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 '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:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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::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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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 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/dex_cache.h:24: 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::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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/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) \ | ^ 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/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ 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/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_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_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_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/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_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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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/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::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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86: 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_); | ^~~~~~~~~~~~~~~ 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 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: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: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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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/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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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/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()); | ^~~~~~~~~ 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/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\ | ^ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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/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 '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] libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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/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: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::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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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/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 '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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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/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_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: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::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 instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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::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/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 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:39: art/runtime/managed_stack.h:167:23: warning: 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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 '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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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/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:39: art/runtime/managed_stack.h:167:23: warning: 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: At global scope: art/runtime/thread.h:1574:27: warning: 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86: 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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_); | ^~~~~~~~~~~~~~~ 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/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/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\ | ^ 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) \ | ^ 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; | ^~~~~~~~~ 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\ | ^ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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/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/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_)); | ^~~~~~~~~~~~~~~ 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/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_)); | ^~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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/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/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:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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/method_handles.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/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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 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/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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; | ^~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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:39: art/runtime/managed_stack.h:167:23: warning: 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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) \ | ^ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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-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/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: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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.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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 '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] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/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 { | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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(); | ^~~~~~~~~ /usr/include/c++/14.2.0/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(); | ^~~~~~~~~ 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++/14.2.0/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++/14.2.0/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/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/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::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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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: 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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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::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::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 { | ^~~~~~~~~~~~ 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/stl_tree.h:63, from /usr/include/c++/14.2.0/map:62, from art/runtime/jdwp/object_registry.h:23: /usr/include/c++/14.2.0/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++/14.2.0/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/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.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: At global scope: art/runtime/thread.h:1574:27: warning: 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/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:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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/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:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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/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::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 '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::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::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/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/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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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 '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:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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: 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::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-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 '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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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::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/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/map:81: 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/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/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/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, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ 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/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); | ^~~~~~~~ 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::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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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: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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_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-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/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::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/dex_file.h:32, from art/runtime/jit/debugger_interface.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 { | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62, from art/runtime/jit/debugger_interface.h:21: /usr/include/c++/14.2.0/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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ /usr/include/c++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/14.2.0/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-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.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::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/mirror/array.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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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::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::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 '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 '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: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 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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: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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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::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::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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 file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_set:56: 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/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 '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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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.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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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/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/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++/14.2.0/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++/14.2.0/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/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++/14.2.0/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 '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::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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/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: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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 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/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/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 '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::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<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::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: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.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::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::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::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/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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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_)); | ^~~~~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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_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/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::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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::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::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::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::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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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::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: 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::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/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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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: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); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/mirror/class.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-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-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.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/jdwp/jdwp.h:26: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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/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 '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/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 '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::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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-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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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::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/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: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 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/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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/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/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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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: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/mirror/class_ext.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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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); | ~~~~~~^~~~~~~~~~~~~~~~~~~ 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::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; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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); | ^~~~~~~~ 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\ | ^ 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 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 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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.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::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 { | ^~~~~~~~~~~ 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 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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::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::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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: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 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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 '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/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:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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/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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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/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::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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\ | ^ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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_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/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++/14.2.0/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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/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" 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/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/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/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) | ^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/runtime_options.h: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/mirror/object_reference.h:167:34: note: remove the '< >' 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) | ^~~~~~~~~~~~~~~~~~~ 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/runtime_options.h: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) | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/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 '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/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_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/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); | ^~~~~~~~ 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++/14.2.0/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/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++/14.2.0/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++/14.2.0/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 '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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 '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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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: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:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/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 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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::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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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-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-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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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: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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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: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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ art/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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 { | ^~~~~~~~ /usr/include/c++/14.2.0/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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: 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++/14.2.0/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++/14.2.0/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++/14.2.0/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 '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 instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in 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<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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/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++/14.2.0/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++/14.2.0/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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_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 { | ^~~~~~~~ /usr/include/c++/14.2.0/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/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/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/class_table.cc:89:36: required from here 89 | if (root.Read()->GetClassLoader() == defining_loader) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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-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 '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::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::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/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 '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/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::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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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/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) \ | ^ 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/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/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/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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/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/gc/allocator/rosalloc.h:350:9: note: 'class art::gc::allocator::RosAlloc::Run' declared here 350 | class Run { | ^~~ In file included from art/runtime/gc_root.h:22: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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.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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/jit/debugger_interface.cc: In function 'void art::DeleteJITCodeEntryInternal(JITDescriptor&, void (*)(), JITCodeEntry*, bool)': art/runtime/jit/debugger_interface.cc:239:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'struct art::JITCodeEntry' with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess] 239 | memset(entry, 0, sizeof(*entry)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/jit/debugger_interface.cc:95:10: note: 'struct art::JITCodeEntry' declared here 95 | struct JITCodeEntry { | ^~~~~~~~~~~~ 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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::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<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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::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:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 '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/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 { | ^~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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/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/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/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ 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/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/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::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]' 465 | access_to->GetClassLoader()); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:526:40: required from here 526 | return ResolvedFieldAccessTest(access_to, field, dex_cache, field_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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_)); | ^~~~~~~~~~~~~~~ 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/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_)); | ^~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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 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/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 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 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::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: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 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_)); | ^~~~~~~~~~~~~~~ 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/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 { | ^~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/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: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 '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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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-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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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::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/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_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 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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 '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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 '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.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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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.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::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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::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 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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::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/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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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::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/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: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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 '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::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::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: 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++/14.2.0/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++/14.2.0/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++/14.2.0/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 '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::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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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::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::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/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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 '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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 '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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/mirror/dex_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_); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/mirror/emulated_stack_frame.cc art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 '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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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 '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_method-inl.h:296:45: required from here 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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::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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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::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-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); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 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::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::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::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 '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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62, from art/runtime/jit/profiling_info.h:20: /usr/include/c++/14.2.0/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; | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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/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" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_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::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::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 '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 '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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 '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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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/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/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? 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 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/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-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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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::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 instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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: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: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 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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: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 '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::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:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_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::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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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-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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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::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/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/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 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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: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 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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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::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 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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: 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/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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, 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/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++/14.2.0/bits/stl_construct.h:61, from /usr/include/c++/14.2.0/bits/stl_tempbuf.h:61, from /usr/include/c++/14.2.0/memory:66, from art/runtime/jit/jit_code_cache.h:21: /usr/include/c++/14.2.0/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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); | ^~~~~~~~~~~~~~~~~~~~~~~ art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 '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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 '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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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\ | ^ art/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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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 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 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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::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: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.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/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 '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/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: | ^~~~ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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::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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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 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::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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\ | ^ 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++/14.2.0/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:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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: 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:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/14.2.0/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 'unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << 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; | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from art/runtime/base/mutex.h:26: /usr/include/c++/14.2.0/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] /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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::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:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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/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::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 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 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 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/managed_stack.h:167:23: warning: 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::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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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::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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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/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 '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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 '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 '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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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.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++/14.2.0/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++/14.2.0/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++/14.2.0/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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.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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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::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_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_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_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_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_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_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_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/mirror/object_reference.h: At global scope: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/jit/jit_code_cache.h:28: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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; | ^~~~~~ 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++/14.2.0/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/base/mutex.h:31, from art/runtime/jit/jit.h:22: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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) {} | ~~~~~~~~~^~~~~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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/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/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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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 { | ^~~~~~~~ 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/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/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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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::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/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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] 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 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | 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/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 '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/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: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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 '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: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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::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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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::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: 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 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/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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 { | ^~~~~~~~ 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++/14.2.0/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++/14.2.0/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 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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 { | ^~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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++/14.2.0/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++/14.2.0/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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::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::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h: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/base/mutex.h:31: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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.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 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 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-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_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.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-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_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 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.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 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~ 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 { | ^~~~~~~~ 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++/14.2.0/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-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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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/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++/14.2.0/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/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++/14.2.0/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.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::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::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::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::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/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 '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 '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/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ 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-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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/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::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 '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: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 '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::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/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 '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/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:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from art/runtime/managed_stack.h:22: /usr/include/c++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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/mirror/executable.cc 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/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) \ | ^ 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_reference.h:21, from art/runtime/handle.h:28, from art/runtime/jit/jit.h:24: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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/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 { | ^~~~~~~~ /usr/include/c++/14.2.0/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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::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/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 '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-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/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: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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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++/14.2.0/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++/14.2.0/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++/14.2.0/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-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/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-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_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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::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::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::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:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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-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: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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: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/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::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/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/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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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::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 '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::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/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_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/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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 '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 '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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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: 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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] 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/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 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_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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/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::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86: 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:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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/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.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/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/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.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++/14.2.0/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++/14.2.0/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 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::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::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::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/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 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-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_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/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::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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/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/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/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.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/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/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/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/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++/14.2.0/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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/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::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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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: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/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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 '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_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 '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_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 { | ^~~~~~~~ /usr/include/c++/14.2.0/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/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++/14.2.0/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_), | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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, 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/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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: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::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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-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/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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/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::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: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/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 '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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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.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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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: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 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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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_root.h:22: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' In file included 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/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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-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/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]' 465 | access_to->GetClassLoader()); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:526:40: required from here 526 | return ResolvedFieldAccessTest(access_to, field, dex_cache, field_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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]' 465 | access_to->GetClassLoader()); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:526:40: required from here 526 | return ResolvedFieldAccessTest(access_to, field, dex_cache, field_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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::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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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 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_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 '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::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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: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++/14.2.0/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++/14.2.0/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++/14.2.0/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 { | ^~~~~~ 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::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::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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::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_)); | ^~~~~~~~~~~~~~~ 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/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 /usr/include/c++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/algorithm:60, from art/libartbase/base/histogram-inl.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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_)); | ^~~~~~~~~~~~~~~ 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; | ^~~~~~ host C++: libart <= art/runtime/mirror/field.cc 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 '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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from /usr/include/c++/14.2.0/bits/locale_classes.h:40, from /usr/include/c++/14.2.0/bits/ios_base.h:41, from /usr/include/c++/14.2.0/iomanip:42, from art/runtime/jni/check_jni.cc:22: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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::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::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:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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 '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] 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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_root.h:22: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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++/14.2.0/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++/14.2.0/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++/14.2.0/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67: 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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/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); | ^~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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_); | ^~~~~~~~~~~~~~~ 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); | ^~~~~~~~~ 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/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/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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/jdwp/jdwp_handler.cc:36: 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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] 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/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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::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 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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/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++/14.2.0/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 { | ^~~~~~~~ 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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ /usr/include/c++/14.2.0/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/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++/14.2.0/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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 '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] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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.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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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/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 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/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 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/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; | ^~~~~~ 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 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/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/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/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/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/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/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\ | ^ 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.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 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 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/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.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/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++/14.2.0/bits/stl_construct.h:61, from /usr/include/c++/14.2.0/bits/stl_tempbuf.h:61, from /usr/include/c++/14.2.0/memory:66, from art/runtime/jni/jni_internal.cc:21: /usr/include/c++/14.2.0/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/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:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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++/14.2.0/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/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++/14.2.0/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/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::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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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::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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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::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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86, 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-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/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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/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/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/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 '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_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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62: /usr/include/c++/14.2.0/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/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ /usr/include/c++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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_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/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.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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/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]' 465 | access_to->GetClassLoader()); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:526:40: required from here 526 | return ResolvedFieldAccessTest(access_to, field, dex_cache, field_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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++/14.2.0/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++/14.2.0/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++/14.2.0/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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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); | ^~~~~~~~ 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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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) {} | ~~~~~~~~~^~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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::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::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/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/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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/mirror/method.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/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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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/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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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::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/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 '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_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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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/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 { | ^~~~~~~~ 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 '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] /usr/include/c++/14.2.0/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/stack_reference.h:21, from art/runtime/handle.h:28: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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::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++/14.2.0/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++/14.2.0/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++/14.2.0/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 { | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from /usr/include/c++/14.2.0/bits/locale_classes.h:40, from /usr/include/c++/14.2.0/bits/ios_base.h:41, from /usr/include/c++/14.2.0/ios:44, from /usr/include/c++/14.2.0/ostream:40, from art/runtime/method_handles.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/handle.h:27: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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/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/runtime/gc_root.h:22, from art/runtime/indirect_reference_table.h:32, from art/runtime/jni/java_vm_ext.h:24: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ 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/object_reference.h:167:34: note: remove the '< >' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_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: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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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/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: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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 '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] In file included from /usr/include/c++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 not defined here [-Wc++20-extensions] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 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.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 not defined here [-Wc++20-extensions] art/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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | 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); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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 unless also declared 'inline' [-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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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_); | ^~~~~~~~~~~~~~~ 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 { | ^~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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 '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: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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_), | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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: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 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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:39: art/runtime/managed_stack.h:167:23: warning: 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/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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 '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-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 '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::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::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/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/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/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: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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 '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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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-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 '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 '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: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 '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: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::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.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++/14.2.0/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++/14.2.0/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++/14.2.0/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::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 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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::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]' 82 | super_class->NumReferenceInstanceFields(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/accounting/remembered_set.cc:125:25: required from here 125 | obj->VisitReferences(visitor, visitor); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ 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-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 '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-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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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, 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++/14.2.0/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 '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/mirror/method_handle_impl.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/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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from art/runtime/base/mutex.h:26: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_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 '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::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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/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 { | ^~~~~~ 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/mirror/method_handles_lookup.cc 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/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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.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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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: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/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::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: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::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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/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_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_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::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::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_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::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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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::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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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.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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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 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_; | ^ 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/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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/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/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++/14.2.0/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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 { | ^~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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-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++/14.2.0/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++/14.2.0/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++/14.2.0/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: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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 '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-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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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); | ^~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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::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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in 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<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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); | ^~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 '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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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 '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; | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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 '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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 'art::ImageSection& art::ImageHeader::GetImageSection(ImageSections)': 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::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 '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::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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:39: art/runtime/managed_stack.h:167:23: warning: 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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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-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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 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::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::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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::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/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/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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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/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 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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 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: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 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 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::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::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: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::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::kWithReadBarrier; Visitor = art::gc::accounting::RememberedSetReferenceVisitor]' 913 | klass->GetReferenceInstanceOffsets(), visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 41 | VisitInstanceFieldsReferences(klass, visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ art/runtime/gc/accounting/remembered_set.cc:125:25: required from here 125 | obj->VisitReferences(visitor, visitor); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ 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/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: 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: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/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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 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]' 41 | ClassTable* const class_table = GetClassTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 68 | class_loader->VisitReferences(klass, visitor); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ art/runtime/gc/accounting/remembered_set.cc:125:25: required from here 125 | obj->VisitReferences(visitor, visitor); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ 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/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/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/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/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/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/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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::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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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 '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/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::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] 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 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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_array-inl.h:29: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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/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, | ~~~~~~~~~^~ 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/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++/14.2.0/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/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/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/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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-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/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.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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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::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/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/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/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/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::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_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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/mirror/object.h:25, from art/runtime/mirror/array.h:24: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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/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); | ^~~~~~~~ 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 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/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::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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map:58, from /usr/include/c++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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) \ | ^ 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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/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) \ | ^ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object.h:25, from art/runtime/mirror/array.h:24: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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 '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 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]' 888 | kIsStatic ? klass->NumReferenceStaticFields() : klass->NumReferenceInstanceFields(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 912 | VisitFieldsReferences( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 913 | klass->GetReferenceInstanceOffsets(), visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 41 | VisitInstanceFieldsReferences(klass, visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ art/runtime/gc/accounting/remembered_set.cc:125:25: required from here 125 | obj->VisitReferences(visitor, visitor); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41: /usr/include/c++/14.2.0/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++/14.2.0/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:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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::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]' 73 | ObjPtr ext(GetExtData()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 49 | VisitNativeRoots( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 50 | visitor, Runtime::Current()->GetClassLinker()->GetImagePointerSize()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 52 | as_klass->VisitReferences(klass, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 53 | visitor); | ~~~~~~~~ art/runtime/gc/accounting/remembered_set.cc:125:25: required from here 125 | obj->VisitReferences(visitor, visitor); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ 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:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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/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); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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::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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map:58, from /usr/include/c++/14.2.0/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::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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 '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/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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::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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 '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_); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/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 '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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ 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_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++/14.2.0/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/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:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ /usr/include/c++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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 '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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 { | ^~~~~~~~ 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41: /usr/include/c++/14.2.0/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++/14.2.0/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_)); | ^~~~~~~~~~~~~~~ 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/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/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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: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/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 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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::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-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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::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 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 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::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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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++/14.2.0/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 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 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::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 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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::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 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::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::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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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::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_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]' 50 | ObjPtr arr(GetObsoleteMethods()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 75 | ext->VisitNativeRoots(visitor, pointer_size); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ 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]' 49 | VisitNativeRoots( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 50 | visitor, Runtime::Current()->GetClassLinker()->GetImagePointerSize()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 52 | as_klass->VisitReferences(klass, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 53 | visitor); | ~~~~~~~~ art/runtime/gc/accounting/remembered_set.cc:125:25: required from here 125 | obj->VisitReferences(visitor, visitor); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ 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 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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 '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::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::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/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 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/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::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 '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 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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 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::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::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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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; | ^~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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/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]' 465 | access_to->GetClassLoader()); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:526:40: required from here 526 | return ResolvedFieldAccessTest(access_to, field, dex_cache, field_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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 '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::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 '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::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: 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 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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::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]' 82 | super_class->NumReferenceInstanceFields(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/accounting/mod_union_table.cc:162:26: required from here 162 | root->VisitReferences(ref_visitor, VoidFunctor()); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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::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::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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 465 | access_to->GetClassLoader()); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:526:40: required from here 526 | return ResolvedFieldAccessTest(access_to, field, dex_cache, field_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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/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 instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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/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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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.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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 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/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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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.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/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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: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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 { | ^~~~~~~~ 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 /usr/include/c++/14.2.0/bits/stl_iterator.h:64, from /usr/include/c++/14.2.0/bits/range_access.h:38, from /usr/include/c++/14.2.0/string_view:51, from art/runtime/mirror/class.h:20: /usr/include/c++/14.2.0/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::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/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++/14.2.0/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/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/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::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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_), | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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 97 | return real_klass_->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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 '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-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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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/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 '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/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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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_), | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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. | ^~~~ 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-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::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 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 '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 '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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/mirror/method_type.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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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/atomic.h:39:12: note: remove the '< >' libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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/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/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/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/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 '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/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/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-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 83 | dex_file_(GetDexFileFromDexCache(klass->GetDexCache())), | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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.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::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object.h:25: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ 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/object_reference.h:167:34: note: remove the '< >' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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, 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion 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:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in 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: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/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/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map:58, from /usr/include/c++/14.2.0/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); | ^~~~~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_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 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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: 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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]; | ^~~~~~~~~~~~~~~~~~~~~ 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/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 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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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.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_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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++/14.2.0/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 '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::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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++/14.2.0/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_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/14.2.0/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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 'unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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-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 '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::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-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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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/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 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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.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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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::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 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::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: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 '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]' 913 | klass->GetReferenceInstanceOffsets(), visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 41 | VisitInstanceFieldsReferences(klass, visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ art/runtime/gc/accounting/mod_union_table.cc:162:26: required from here 162 | root->VisitReferences(ref_visitor, VoidFunctor()); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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.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/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 { | ^~~~~~~~ /usr/include/c++/14.2.0/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::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::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: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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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_; | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/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/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/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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::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_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]' 41 | ClassTable* const class_table = GetClassTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 68 | class_loader->VisitReferences(klass, visitor); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ art/runtime/gc/accounting/mod_union_table.cc:162:26: required from here 162 | root->VisitReferences(ref_visitor, VoidFunctor()); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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::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::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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_root.h:22, from art/runtime/art_method.h:38, from art/runtime/art_method-inl.h:20: art/runtime/mirror/object_reference.h: At global scope: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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::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 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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\ | ^ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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.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-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_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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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 '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; | ^~~~~~ art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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::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/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 { | ^~~~~~~~ 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_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 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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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_), | ^~~~~~~~~~~~~~~~~~~~~~~ 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: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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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.h:25, from art/runtime/mirror/array.h:24: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 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::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/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 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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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::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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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::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::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/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.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/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/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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map:58, from /usr/include/c++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/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::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 '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::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/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::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; | ^~~~~~ host C++: libart <= art/runtime/mirror/object.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-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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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 '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::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 '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 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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/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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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::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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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::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 unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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::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 unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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::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::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 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': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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: 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/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 */ \ | ^~~~ /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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, 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_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/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::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/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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]' 888 | kIsStatic ? klass->NumReferenceStaticFields() : klass->NumReferenceInstanceFields(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 912 | VisitFieldsReferences( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 913 | klass->GetReferenceInstanceOffsets(), visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 41 | VisitInstanceFieldsReferences(klass, visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ art/runtime/gc/accounting/mod_union_table.cc:162:26: required from here 162 | root->VisitReferences(ref_visitor, VoidFunctor()); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] 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 instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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::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 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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::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]' 73 | ObjPtr ext(GetExtData()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 49 | VisitNativeRoots( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 50 | visitor, Runtime::Current()->GetClassLinker()->GetImagePointerSize()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 52 | as_klass->VisitReferences(klass, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 53 | visitor); | ~~~~~~~~ art/runtime/gc/accounting/mod_union_table.cc:162:26: required from here 162 | root->VisitReferences(ref_visitor, VoidFunctor()); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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::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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/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::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); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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.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::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::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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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]' 465 | access_to->GetClassLoader()); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:526:40: required from here 526 | return ResolvedFieldAccessTest(access_to, field, dex_cache, field_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_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_; | ^~~~~~~~~~~~~~~~~~~~~~~ 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/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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::ModUnionUpdateObjectReferencesVisitor]' 50 | ObjPtr arr(GetObsoleteMethods()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 75 | ext->VisitNativeRoots(visitor, pointer_size); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ 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]' 49 | VisitNativeRoots( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 50 | visitor, Runtime::Current()->GetClassLinker()->GetImagePointerSize()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 52 | as_klass->VisitReferences(klass, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 53 | visitor); | ~~~~~~~~ art/runtime/gc/accounting/mod_union_table.cc:162:26: required from here 162 | root->VisitReferences(ref_visitor, VoidFunctor()); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/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 '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] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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/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]' 465 | access_to->GetClassLoader()); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:526:40: required from here 526 | return ResolvedFieldAccessTest(access_to, field, dex_cache, field_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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-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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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 '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/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/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41: /usr/include/c++/14.2.0/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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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++/14.2.0/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++/14.2.0/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/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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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 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_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: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::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::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.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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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_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/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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::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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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]' 82 | super_class->NumReferenceInstanceFields(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/collector/semi_space.cc:330:23: required from here 330 | obj->VisitReferences(visitor, VoidFunctor()); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ 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/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/object_array.h:20, from art/runtime/mirror/method_type.h:20, from art/runtime/mirror/method_type-inl.h:20, from art/runtime/mirror/method_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: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define 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::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) | ~~~~~~~~~^~~~~ 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/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/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); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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_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 '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_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::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_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/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/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/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/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\ | ^ 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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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::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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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: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::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_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/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 '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 '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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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::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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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; | ^~~~~~ host C++: libart <= art/runtime/mirror/stack_trace_element.cc 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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::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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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::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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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::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::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_); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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::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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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: 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++/14.2.0/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++/14.2.0/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++/14.2.0/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 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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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::gc::collector::SemiSpace::VerifyNoFromSpaceReferencesVisitor]' 913 | klass->GetReferenceInstanceOffsets(), visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 41 | VisitInstanceFieldsReferences(klass, visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ art/runtime/gc/collector/semi_space.cc:330:23: required from here 330 | obj->VisitReferences(visitor, VoidFunctor()); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 83 | dex_file_(GetDexFileFromDexCache(klass->GetDexCache())), | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/hidden_api.h:117:56: required from here 117 | Domain domain = ComputeDomain(klass->GetClassLoader(), dex_file); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 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]' 41 | ClassTable* const class_table = GetClassTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 68 | class_loader->VisitReferences(klass, visitor); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ art/runtime/gc/collector/semi_space.cc:330:23: required from here 330 | obj->VisitReferences(visitor, VoidFunctor()); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ 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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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: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/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++/14.2.0/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++/14.2.0/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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-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 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/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/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/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]' 89 | ret->SetType(type.Get()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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]' 566 | element_object = mirror::Field::CreateFromArtField(self, field, true); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ art/runtime/dex/dex_file_annotations.cc:734:37: required from here 734 | if (!ProcessAnnotationValue(klass, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 735 | annotation, | ~~~~~~~~~~~ 736 | &annotation_value, | ~~~~~~~~~~~~~~~~~~ 737 | method_return, | ~~~~~~~~~~~~~~ 738 | DexFile::kAllObjects)) { | ~~~~~~~~~~~~~~~~~~~~~ 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-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 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]' 90 | ret->SetDeclaringClass(field->GetDeclaringClass()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 566 | element_object = mirror::Field::CreateFromArtField(self, field, true); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ art/runtime/dex/dex_file_annotations.cc:734:37: required from here 734 | if (!ProcessAnnotationValue(klass, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 735 | annotation, | ~~~~~~~~~~~ 736 | &annotation_value, | ~~~~~~~~~~~~~~~~~~ 737 | method_return, | ~~~~~~~~~~~~~~ 738 | DexFile::kAllObjects)) { | ~~~~~~~~~~~~~~~~~~~~~ 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]' 91 | ret->SetAccessFlags(field->GetAccessFlags()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 566 | element_object = mirror::Field::CreateFromArtField(self, field, true); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ art/runtime/dex/dex_file_annotations.cc:734:37: required from here 734 | if (!ProcessAnnotationValue(klass, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 735 | annotation, | ~~~~~~~~~~~ 736 | &annotation_value, | ~~~~~~~~~~~~~~~~~~ 737 | method_return, | ~~~~~~~~~~~~~~ 738 | DexFile::kAllObjects)) { | ~~~~~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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]' 92 | ret->SetDexFieldIndex(dex_field_index); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 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]' 566 | element_object = mirror::Field::CreateFromArtField(self, field, true); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ art/runtime/dex/dex_file_annotations.cc:734:37: required from here 734 | if (!ProcessAnnotationValue(klass, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 735 | annotation, | ~~~~~~~~~~~ 736 | &annotation_value, | ~~~~~~~~~~~~~~~~~~ 737 | method_return, | ~~~~~~~~~~~~~~ 738 | DexFile::kAllObjects)) { | ~~~~~~~~~~~~~~~~~~~~~ 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]' 93 | ret->SetOffset(field->GetOffset().Int32Value()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 566 | element_object = mirror::Field::CreateFromArtField(self, field, true); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ art/runtime/dex/dex_file_annotations.cc:734:37: required from here 734 | if (!ProcessAnnotationValue(klass, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 735 | annotation, | ~~~~~~~~~~~ 736 | &annotation_value, | ~~~~~~~~~~~~~~~~~~ 737 | method_return, | ~~~~~~~~~~~~~~ 738 | DexFile::kAllObjects)) { | ~~~~~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/ext/concurrence.h:34, from /usr/include/c++/14.2.0/bits/shared_ptr_base.h:62, from /usr/include/c++/14.2.0/bits/shared_ptr.h:53, from /usr/include/c++/14.2.0/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/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/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 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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::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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/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/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++/14.2.0/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++/14.2.0/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/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]' 89 | ret->SetType(type.Get()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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]' 566 | element_object = mirror::Field::CreateFromArtField(self, field, true); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ art/runtime/dex/dex_file_annotations.cc:846:37: required from here 846 | ? ProcessAnnotationValue(klass, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 847 | &annotation, | ~~~~~~~~~~~~ 848 | &annotation_value, | ~~~~~~~~~~~~~~~~~~ 849 | array_class, | ~~~~~~~~~~~~ 850 | DexFile::kAllObjects) | ~~~~~~~~~~~~~~~~~~~~~ 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]' 90 | ret->SetDeclaringClass(field->GetDeclaringClass()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 566 | element_object = mirror::Field::CreateFromArtField(self, field, true); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ art/runtime/dex/dex_file_annotations.cc:846:37: required from here 846 | ? ProcessAnnotationValue(klass, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 847 | &annotation, | ~~~~~~~~~~~~ 848 | &annotation_value, | ~~~~~~~~~~~~~~~~~~ 849 | array_class, | ~~~~~~~~~~~~ 850 | DexFile::kAllObjects) | ~~~~~~~~~~~~~~~~~~~~~ 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]' 91 | ret->SetAccessFlags(field->GetAccessFlags()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 566 | element_object = mirror::Field::CreateFromArtField(self, field, true); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ art/runtime/dex/dex_file_annotations.cc:846:37: required from here 846 | ? ProcessAnnotationValue(klass, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 847 | &annotation, | ~~~~~~~~~~~~ 848 | &annotation_value, | ~~~~~~~~~~~~~~~~~~ 849 | array_class, | ~~~~~~~~~~~~ 850 | DexFile::kAllObjects) | ~~~~~~~~~~~~~~~~~~~~~ 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]' 92 | ret->SetDexFieldIndex(dex_field_index); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 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]' 566 | element_object = mirror::Field::CreateFromArtField(self, field, true); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ art/runtime/dex/dex_file_annotations.cc:846:37: required from here 846 | ? ProcessAnnotationValue(klass, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 847 | &annotation, | ~~~~~~~~~~~~ 848 | &annotation_value, | ~~~~~~~~~~~~~~~~~~ 849 | array_class, | ~~~~~~~~~~~~ 850 | DexFile::kAllObjects) | ~~~~~~~~~~~~~~~~~~~~~ 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 '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/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]' 93 | ret->SetOffset(field->GetOffset().Int32Value()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 566 | element_object = mirror::Field::CreateFromArtField(self, field, true); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ art/runtime/dex/dex_file_annotations.cc:846:37: required from here 846 | ? ProcessAnnotationValue(klass, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 847 | &annotation, | ~~~~~~~~~~~~ 848 | &annotation_value, | ~~~~~~~~~~~~~~~~~~ 849 | array_class, | ~~~~~~~~~~~~ 850 | DexFile::kAllObjects) | ~~~~~~~~~~~~~~~~~~~~~ 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 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: 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 '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: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 '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_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: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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/mirror/object.h:25: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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_)); | ^~~~~~~~~~~~~~~ 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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] In file included from /usr/include/c++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/ios:41, from /usr/include/c++/14.2.0/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/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/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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/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/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 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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86, 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.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/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 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/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::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/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\ | ^ 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.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/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::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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/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/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ /usr/include/c++/14.2.0/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 unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ /usr/include/c++/14.2.0/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 unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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.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/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 '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 '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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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::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::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::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 instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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_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::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]' 888 | kIsStatic ? klass->NumReferenceStaticFields() : klass->NumReferenceInstanceFields(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 912 | VisitFieldsReferences( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 913 | klass->GetReferenceInstanceOffsets(), visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 41 | VisitInstanceFieldsReferences(klass, visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ art/runtime/gc/collector/semi_space.cc:330:23: required from here 330 | obj->VisitReferences(visitor, VoidFunctor()); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ 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.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_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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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]' 73 | ObjPtr ext(GetExtData()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 49 | VisitNativeRoots( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 50 | visitor, Runtime::Current()->GetClassLinker()->GetImagePointerSize()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 52 | as_klass->VisitReferences(klass, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 53 | visitor); | ~~~~~~~~ art/runtime/gc/collector/semi_space.cc:330:23: required from here 330 | obj->VisitReferences(visitor, VoidFunctor()); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ 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_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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/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/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 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/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 '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] 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++/14.2.0/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++/14.2.0/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++/14.2.0/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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_); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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::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]' 73 | ObjPtr ext(GetExtData()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 49 | VisitNativeRoots( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 50 | visitor, Runtime::Current()->GetClassLinker()->GetImagePointerSize()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 52 | as_klass->VisitReferences(klass, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 53 | visitor); | ~~~~~~~~ art/runtime/gc/collector/semi_space.cc:731:93: required from here 731 | obj->VisitReferences( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 732 | visitor, visitor); | ~~~~~~~~~~~~~~~~~ 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: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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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_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: 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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; | ^~~~~~ host C++: libart <= art/runtime/mirror/string.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/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::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/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::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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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.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++/14.2.0/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/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 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; | ^~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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 '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::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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::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::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]' 82 | super_class->NumReferenceInstanceFields(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/collector/concurrent_copying.cc:652:50: required from here 650 | obj->VisitReferences(visitor, visitor); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ 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-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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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 '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_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]' 50 | ObjPtr arr(GetObsoleteMethods()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 75 | ext->VisitNativeRoots(visitor, pointer_size); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ 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]' 49 | VisitNativeRoots( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 50 | visitor, Runtime::Current()->GetClassLinker()->GetImagePointerSize()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 52 | as_klass->VisitReferences(klass, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 53 | visitor); | ~~~~~~~~ art/runtime/gc/collector/semi_space.cc:330:23: required from here 330 | obj->VisitReferences(visitor, VoidFunctor()); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ 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 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 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 '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::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::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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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 '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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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::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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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_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]' 50 | ObjPtr arr(GetObsoleteMethods()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 75 | ext->VisitNativeRoots(visitor, pointer_size); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ 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]' 49 | VisitNativeRoots( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 50 | visitor, Runtime::Current()->GetClassLinker()->GetImagePointerSize()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 52 | as_klass->VisitReferences(klass, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 53 | visitor); | ~~~~~~~~ art/runtime/gc/collector/semi_space.cc:731:93: required from here 731 | obj->VisitReferences( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 732 | visitor, visitor); | ~~~~~~~~~~~~~~~~~ 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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 '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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 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/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 '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] In file included from art/runtime/base/locks.h:25, from art/runtime/handle.h:23, from art/runtime/mirror/emulated_stack_frame.h:22: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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_)); | ^~~~~~~~~~~~~~~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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.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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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 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: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 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/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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]' 465 | access_to->GetClassLoader()); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:526:40: required from here 526 | return ResolvedFieldAccessTest(access_to, field, dex_cache, field_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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::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: 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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::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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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::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 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/stack_reference.h:21, from art/runtime/handle.h:28: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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/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/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/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 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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: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.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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 > 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-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/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/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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/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++/14.2.0/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/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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: 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: 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: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: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 '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/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: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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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::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/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/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/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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-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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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::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]' 361 | ObjPtr ext(declaring_class->GetExtData()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/hidden_api.cc:492:57: required from here 492 | template uint32_t GetDexFlags(ArtField* member); | ^ 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/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/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-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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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::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 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_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 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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.h:25: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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\ | ^ 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: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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86, 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/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/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/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/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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) | ^~~~~~~~~ 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::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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/mirror/throwable.cc 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/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 '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 '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: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/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: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::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::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/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/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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 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/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++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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/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: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 '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]' 913 | klass->GetReferenceInstanceOffsets(), visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 41 | VisitInstanceFieldsReferences(klass, visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ art/runtime/gc/collector/concurrent_copying.cc:652:50: required from here 650 | obj->VisitReferences(visitor, visitor); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ 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::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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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 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]' 41 | ClassTable* const class_table = GetClassTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 68 | class_loader->VisitReferences(klass, visitor); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ art/runtime/gc/collector/concurrent_copying.cc:652:50: required from here 650 | obj->VisitReferences(visitor, visitor); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ 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.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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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: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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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 { | ^~~~~~~~~~~~ host C++: libart <= art/runtime/mirror/var_handle.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/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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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::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 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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 { | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart <= art/runtime/monitor.cc 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]' 82 | super_class->NumReferenceInstanceFields(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/verification.cc:231:32: required from here 231 | pair.first->VisitReferences(visitor, VoidFunctor()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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-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:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 '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] 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++/14.2.0/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++/14.2.0/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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(); | ^~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++/14.2.0/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++/14.2.0/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/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) \ | ^ 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.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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/specfun.h:43, from /usr/include/c++/14.2.0/cmath:3898, from /usr/include/c++/14.2.0/random:40, from art/libartbase/base/utils.h:23: /usr/include/c++/14.2.0/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/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", | ~~^ | | | long unsigned int 2005 | static_cast(space->GetImageHeader().GetPointerSize()), 2006 | image_pointer_size_); | ~~~~~~~~~~~~~~~~~~~ | | | art::PointerSize 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++/14.2.0/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++/14.2.0/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++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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/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++/14.2.0/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++/14.2.0/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 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 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 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: 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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::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.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/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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 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/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 '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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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/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 { | ^~~~~~~~ /usr/include/c++/14.2.0/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/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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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) \ | ^ 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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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::kWithoutReadBarrier; Visitor = art::gc::collector::ConcurrentCopying::VerifyGrayImmuneObjectsVisitor; uint32_t = unsigned int]' 888 | kIsStatic ? klass->NumReferenceStaticFields() : klass->NumReferenceInstanceFields(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 912 | VisitFieldsReferences( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 913 | klass->GetReferenceInstanceOffsets(), visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 41 | VisitInstanceFieldsReferences(klass, visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ art/runtime/gc/collector/concurrent_copying.cc:652:50: required from here 650 | obj->VisitReferences(visitor, visitor); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ 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::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::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]' 73 | ObjPtr ext(GetExtData()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 49 | VisitNativeRoots( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 50 | visitor, Runtime::Current()->GetClassLinker()->GetImagePointerSize()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 52 | as_klass->VisitReferences(klass, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 53 | visitor); | ~~~~~~~~ art/runtime/gc/collector/concurrent_copying.cc:652:50: required from here 650 | obj->VisitReferences(visitor, visitor); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ 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 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86: 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::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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::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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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/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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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: 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++/14.2.0/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++/14.2.0/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object.h:25: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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]' 913 | klass->GetReferenceInstanceOffsets(), visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 41 | VisitInstanceFieldsReferences(klass, visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ art/runtime/gc/verification.cc:231:32: required from here 231 | pair.first->VisitReferences(visitor, VoidFunctor()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ 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/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 instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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/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::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/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/hidden_api.cc:307:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86, 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/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/hidden_api.cc:324:31: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 302 | static ALWAYS_INLINE bool CanUpdateRuntimeFlags(ArtMethod* method) { | ^~~~~~~~~~~~~~~~~~~~~ art/runtime/hidden_api.cc:298:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 298 | static ALWAYS_INLINE bool CanUpdateRuntimeFlags(ArtField*) { | ^~~~~~~~~~~~~~~~~~~~~ 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]' 41 | ClassTable* const class_table = GetClassTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 68 | class_loader->VisitReferences(klass, visitor); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ art/runtime/gc/verification.cc:231:32: required from here 231 | pair.first->VisitReferences(visitor, VoidFunctor()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ 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 '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/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-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::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: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/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\ | ^ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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/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 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::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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::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/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::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_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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.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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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::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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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::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::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::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-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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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_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]' 50 | ObjPtr arr(GetObsoleteMethods()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 75 | ext->VisitNativeRoots(visitor, pointer_size); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ 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]' 49 | VisitNativeRoots( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 50 | visitor, Runtime::Current()->GetClassLinker()->GetImagePointerSize()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 52 | as_klass->VisitReferences(klass, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 53 | visitor); | ~~~~~~~~ art/runtime/gc/collector/concurrent_copying.cc:652:50: required from here 650 | obj->VisitReferences(visitor, visitor); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ 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 '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); | ~~~~~~^~~~~~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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::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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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-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/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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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: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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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/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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/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-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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 { | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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::Verification::BFSFindReachable; uint32_t = unsigned int]' 888 | kIsStatic ? klass->NumReferenceStaticFields() : klass->NumReferenceInstanceFields(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 912 | VisitFieldsReferences( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 913 | klass->GetReferenceInstanceOffsets(), visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 41 | VisitInstanceFieldsReferences(klass, visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ art/runtime/gc/verification.cc:231:32: required from here 231 | pair.first->VisitReferences(visitor, VoidFunctor()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ 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::gc::Verification::BFSFindReachable]' 73 | ObjPtr ext(GetExtData()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 49 | VisitNativeRoots( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 50 | visitor, Runtime::Current()->GetClassLinker()->GetImagePointerSize()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 52 | as_klass->VisitReferences(klass, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 53 | visitor); | ~~~~~~~~ art/runtime/gc/verification.cc:231:32: required from here 231 | pair.first->VisitReferences(visitor, VoidFunctor()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ 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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67: 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/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 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/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_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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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]' 87 | return GetLengthFromCount(GetCount()); | ~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/string-inl.h:46:28: required from here 46 | int32_t count = GetLength(); | ~~~~~~~~~^~ 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); | ^~~~~~~~ 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]' 50 | ObjPtr arr(GetObsoleteMethods()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 75 | ext->VisitNativeRoots(visitor, pointer_size); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ 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]' 49 | VisitNativeRoots( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 50 | visitor, Runtime::Current()->GetClassLinker()->GetImagePointerSize()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 52 | as_klass->VisitReferences(klass, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 53 | visitor); | ~~~~~~~~ art/runtime/gc/verification.cc:231:32: required from here 231 | pair.first->VisitReferences(visitor, VoidFunctor()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ 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::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]' 465 | access_to->GetClassLoader()); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:526:40: required from here 526 | return ResolvedFieldAccessTest(access_to, field, dex_cache, field_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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::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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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-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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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::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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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) \ | ^ 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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/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 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.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 '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::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 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]' 87 | return GetLengthFromCount(GetCount()); | ~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/string-inl.h:46:28: required from here 46 | int32_t count = GetLength(); | ~~~~~~~~~^~ 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 '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 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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::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/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++/14.2.0/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++/14.2.0/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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_)); | ^~~~~~~~~~~~~~~ host C++: libart <= art/runtime/monitor_objects_stack_visitor.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, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ 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: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67, from /usr/include/c++/14.2.0/random:43: 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/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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: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_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::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/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::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]' 465 | access_to->GetClassLoader()); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:526:40: required from here 526 | return ResolvedFieldAccessTest(access_to, field, dex_cache, field_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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_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 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/base/locks.h:25: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/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/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.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-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::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/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 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 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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/gc_root.h:22: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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 instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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-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\ | ^ In file included from art/runtime/stack_reference.h:21, from art/runtime/handle.h:28: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/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: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 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 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/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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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/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/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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67, from /usr/include/c++/14.2.0/random:43, 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/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: At global scope: art/runtime/thread.h:1574:27: warning: 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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/specfun.h:43, from /usr/include/c++/14.2.0/cmath:3898, from /usr/include/c++/14.2.0/random:40: /usr/include/c++/14.2.0/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++/14.2.0/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/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++/14.2.0/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/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::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/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 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::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/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/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: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/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++/14.2.0/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/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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/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/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::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/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::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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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; | ^~~~~~ host C++: libart <= art/runtime/native_bridge_art_interface.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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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; | ^~~~~~ host C++: libart <= art/runtime/native_stack_dump.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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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.h:25, from art/runtime/mirror/array.h:24: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/native/dalvik_system_DexFile.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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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::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/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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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::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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map:58, from /usr/include/c++/14.2.0/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_); | ^~~~~~~~~~~~~~~ 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/functional:63, from art/libdexfile/dex/dex_file_types.h:22, from art/runtime/art_field.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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 */ \ | ^~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41: /usr/include/c++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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: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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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_); | ^~~~~~~~~~~~~~~ art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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 '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-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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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.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++/14.2.0/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++/14.2.0/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:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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: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:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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.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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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::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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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/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/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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 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/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++/14.2.0/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++/14.2.0/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, 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++/14.2.0/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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.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); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14.2.0/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 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/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::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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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 '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::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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, 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 { | ^~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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++/14.2.0/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; | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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++/14.2.0/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++/14.2.0/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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::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 '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] 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" 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] host C++: libart <= art/runtime/native/dalvik_system_VMDebug.cc art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/hidden_api.h:83:60: required from here 83 | dex_file_(GetDexFileFromDexCache(klass->GetDexCache())), | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] 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/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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_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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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.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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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 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 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_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/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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.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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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::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_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/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++/14.2.0/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/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 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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::GetExtData() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method.cc:111:63: required from here 111 | ObjPtr ext(GetDeclaringClass()->GetExtData()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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_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 113 | ObjPtr obsolete_methods(ext->GetObsoleteMethods()); | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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/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++/14.2.0/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 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/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::GetClassSize() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/hprof/hprof.cc:1206:54: required from here 1206 | const size_t total_class_size = klass->GetClassSize(); | ~~~~~~~~~~~~~~~~~~~^~ 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::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/object.h:25: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 '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: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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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-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::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 '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::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 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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: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/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++/14.2.0/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 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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86, 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/native/dalvik_system_VMRuntime.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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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 { | ^~~~~~~~~~~~ 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62: /usr/include/c++/14.2.0/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++/14.2.0/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 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_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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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: 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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++/14.2.0/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::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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:87:53: required from 'int32_t art::mirror::String::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]' 87 | return GetLengthFromCount(GetCount()); | ~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/string-inl.h:46:28: required from here 46 | int32_t count = GetLength(); | ~~~~~~~~~^~ 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; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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::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_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::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, 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++/14.2.0/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++/14.2.0/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++/14.2.0/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.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/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 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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::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/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/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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) \ | ^ 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) \ | ^ 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: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/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 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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::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 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 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/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::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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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/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" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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(Class, class_flags_), new_flags); art/runtime/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/mirror/object.h:25: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/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/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 '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++/14.2.0/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++/14.2.0/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++/14.2.0/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::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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++/14.2.0/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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-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/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/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/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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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 /usr/include/c++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62: /usr/include/c++/14.2.0/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: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/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++/14.2.0/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/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: art/runtime/thread.h:1707: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 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_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 <= art/runtime/native/dalvik_system_VMStack.cc 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::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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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 unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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 unless also declared 'inline' [-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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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::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]' 82 | super_class->NumReferenceInstanceFields(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/hprof/hprof.cc:1115:25: required from here 1115 | obj->VisitReferences(visitor, VoidFunctor()); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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/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/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 '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::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/subtype_check_info.h:222:55: warning: in call 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::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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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::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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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::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 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]' 87 | return GetLengthFromCount(GetCount()); | ~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/hprof/hprof.cc:1512:46: required from here 1512 | __ AddU4(obj->AsString()->GetLength()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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 { | ^~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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.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 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/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-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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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++/14.2.0/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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-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::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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()); | ^~~~~~~~~ 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:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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_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/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 '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/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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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::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); | ^~~~~~~~ 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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/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/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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::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/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) \ | ^ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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/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, | ~~~~~~~~~~~~~~^~~~~~~~~ host C++: libart <= art/runtime/native/dalvik_system_ZygoteHooks.cc 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); | ^~~~~~~~ art/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 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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, 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++/14.2.0/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++/14.2.0/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++/14.2.0/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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; | ^~~~~~ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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: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/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 '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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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::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/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 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 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/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) \ | ^ 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 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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/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/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::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/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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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::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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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::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: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 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 '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 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 '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/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::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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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/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/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: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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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 '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/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/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/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.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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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: 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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_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::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_), | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/native/java_lang_Class.cc 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::hprof::Hprof::DumpHeapObject(art::mirror::Object*)::RootCollector]' 913 | klass->GetReferenceInstanceOffsets(), visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 41 | VisitInstanceFieldsReferences(klass, visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ art/runtime/hprof/hprof.cc:1115:25: required from here 1115 | obj->VisitReferences(visitor, VoidFunctor()); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ 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: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/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::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 '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 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::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/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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]' 41 | ClassTable* const class_table = GetClassTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 68 | class_loader->VisitReferences(klass, visitor); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ art/runtime/hprof/hprof.cc:1115:25: required from here 1115 | obj->VisitReferences(visitor, VoidFunctor()); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ 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 '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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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: 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-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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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/object.h:25: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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 '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::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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 '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.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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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_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/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_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::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::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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' 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/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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; | ^~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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: 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); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/native/java_lang_Object.cc 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/object.h:25: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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.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/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 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/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 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/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::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/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 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 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::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/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/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 '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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 { | ^~~~~~~~ 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/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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 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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map: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::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 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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, 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 '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/dalvik_system_VMStack.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/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/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 666 | ALWAYS_INLINE void MterpFieldAccess(Instruction* inst, | ^~~~~~~~~~~~~~~~ art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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::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/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 752 | ALWAYS_INLINE bool MterpFieldAccessFast(Instruction* inst, | ^~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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::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.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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/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/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/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-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/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.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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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::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 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::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::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/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/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: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 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-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::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 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]' 888 | kIsStatic ? klass->NumReferenceStaticFields() : klass->NumReferenceInstanceFields(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 912 | VisitFieldsReferences( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 913 | klass->GetReferenceInstanceOffsets(), visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 41 | VisitInstanceFieldsReferences(klass, visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ art/runtime/hprof/hprof.cc:1115:25: required from here 1115 | obj->VisitReferences(visitor, VoidFunctor()); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ 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_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::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 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]' 73 | ObjPtr ext(GetExtData()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 49 | VisitNativeRoots( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 50 | visitor, Runtime::Current()->GetClassLinker()->GetImagePointerSize()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 52 | as_klass->VisitReferences(klass, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 53 | visitor); | ~~~~~~~~ art/runtime/hprof/hprof.cc:1115:25: required from here 1115 | obj->VisitReferences(visitor, VoidFunctor()); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ 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_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 '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-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 { | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62, from art/libartbase/base/atomic.h:23: /usr/include/c++/14.2.0/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++/14.2.0/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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ 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/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] /usr/include/c++/14.2.0/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: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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/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/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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::kWithReadBarrier; Visitor = art::gc::Heap::GetReferringObjects(art::VariableSizedHandleScope&, art::Handle, int32_t, std::vector >&)::ReferringObjectsFinder; JavaLangRefVisitor = art::VoidFunctor]' 82 | super_class->NumReferenceInstanceFields(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/heap.cc:2021:25: required from here 2021 | obj->VisitReferences(finder, VoidFunctor()); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ 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/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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++/14.2.0/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 '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] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 '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_), | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/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 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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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]' 87 | return GetLengthFromCount(GetCount()); | ~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/string-inl.h:46:28: required from here 46 | int32_t count = GetLength(); | ~~~~~~~~~^~ 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 '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] host C++: libart <= art/runtime/native/java_lang_String.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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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_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]' 50 | ObjPtr arr(GetObsoleteMethods()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 75 | ext->VisitNativeRoots(visitor, pointer_size); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ 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]' 49 | VisitNativeRoots( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 50 | visitor, Runtime::Current()->GetClassLinker()->GetImagePointerSize()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 52 | as_klass->VisitReferences(klass, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 53 | visitor); | ~~~~~~~~ art/runtime/hprof/hprof.cc:1115:25: required from here 1115 | obj->VisitReferences(visitor, VoidFunctor()); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ 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/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++/14.2.0/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:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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/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/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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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: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/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::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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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::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/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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/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/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/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: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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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/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) \ | ^ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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 '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] 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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: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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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_StringFactory.cc art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? 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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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/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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ 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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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-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::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/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: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/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_)); | ^~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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); | ^~~~~~~~ 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: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 '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/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::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::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: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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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/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 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/stack_reference.h:21, from art/runtime/handle.h:28: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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 '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_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::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: art/runtime/thread.h:1707: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/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); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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::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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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: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::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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/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 '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: 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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/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/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/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++/14.2.0/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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 { | ^~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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-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); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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/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::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/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: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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map:58, from /usr/include/c++/14.2.0/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_)); | ^~~~~~~~~~~~~~~ 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 '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/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 '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 '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] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 '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]' 913 | klass->GetReferenceInstanceOffsets(), visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 41 | VisitInstanceFieldsReferences(klass, visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ art/runtime/gc/heap.cc:2021:25: required from here 2021 | obj->VisitReferences(finder, VoidFunctor()); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ 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/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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: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:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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/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]' 444 | size_t num_reference_instance_fields = class_class->NumReferenceInstanceFields(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 1238 | patch_object_visitor.VisitClass(klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ art/runtime/gc/space/image_space.cc:703:51: required from here 703 | result = RelocateInPlace(*image_header, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ 704 | space->GetMemMap()->Begin(), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 705 | space->GetLiveBitmap(), | ~~~~~~~~~~~~~~~~~~~~~~~ 706 | oat_file, | ~~~~~~~~~ 707 | error_msg); | ~~~~~~~~~~ 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-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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc_root.h:22, from art/runtime/monitor.h:32: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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]' 464 | size_t num_reference_static_fields = klass->NumReferenceStaticFields(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 1238 | patch_object_visitor.VisitClass(klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ art/runtime/gc/space/image_space.cc:703:51: required from here 703 | result = RelocateInPlace(*image_header, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ 704 | space->GetMemMap()->Begin(), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 705 | space->GetLiveBitmap(), | ~~~~~~~~~~~~~~~~~~~~~~~ 706 | oat_file, | ~~~~~~~~~ 707 | error_msg); | ~~~~~~~~~~ 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/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 '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]' 477 | klass->FixupNativePointers(klass, kPointerSize, *this); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 1238 | patch_object_visitor.VisitClass(klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ art/runtime/gc/space/image_space.cc:703:51: required from here 703 | result = RelocateInPlace(*image_header, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ 704 | space->GetMemMap()->Begin(), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 705 | space->GetLiveBitmap(), | ~~~~~~~~~~~~~~~~~~~~~~~ 706 | oat_file, | ~~~~~~~~~ 707 | error_msg); | ~~~~~~~~~~ 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/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: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: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/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 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/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++/14.2.0/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++/14.2.0/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: 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41: /usr/include/c++/14.2.0/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++/14.2.0/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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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 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]' 41 | ClassTable* const class_table = GetClassTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 68 | class_loader->VisitReferences(klass, visitor); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ art/runtime/gc/heap.cc:2021:25: required from here 2021 | obj->VisitReferences(finder, VoidFunctor()); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ 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::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::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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: { | ^~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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::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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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-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]' 477 | klass->FixupNativePointers(klass, kPointerSize, *this); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 1238 | patch_object_visitor.VisitClass(klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ art/runtime/gc/space/image_space.cc:709:51: required from here 709 | result = RelocateInPlace(*image_header, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ 710 | space->GetMemMap()->Begin(), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 711 | space->GetLiveBitmap(), | ~~~~~~~~~~~~~~~~~~~~~~~ 712 | oat_file, | ~~~~~~~~~ 713 | error_msg); | ~~~~~~~~~~ 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 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 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::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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.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: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::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/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.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::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/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 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::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::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::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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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) \ | ^ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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::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::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::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::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::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/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 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/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/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/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::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::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 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::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 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/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::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/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_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/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 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::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 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 '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]' 477 | klass->FixupNativePointers(klass, kPointerSize, *this); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 1631 | patch_object_visitor.VisitClass(klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ art/runtime/gc/space/image_space.cc:1736:41: required from here 1736 | DoRelocateSpaces(spaces, diff); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ 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/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: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/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 '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/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 '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/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 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/java_lang_System.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/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 475 | ? holder_->AsClass()->NumReferenceStaticFields() | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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 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 476 | : holder_->GetClass()->NumReferenceInstanceFields()) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 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::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/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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/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]' 477 | klass->FixupNativePointers(klass, kPointerSize, *this); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 1631 | patch_object_visitor.VisitClass(klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ art/runtime/gc/space/image_space.cc:1738:41: required from here 1738 | DoRelocateSpaces(spaces, diff); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ 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 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/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); | ^~~~~~~~ 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\ | ^ 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 { | ^~~~~~~~ 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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ 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++/14.2.0/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++/14.2.0/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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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 '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_)); | ^~~~~~~~~~~~~~~ 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/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/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: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/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/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/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) \ | ^ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/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/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 instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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/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/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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: 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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::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/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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/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); | ^~~~~~~~~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/native/java_lang_Thread.cc 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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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: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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/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); | ^~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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_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/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/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 '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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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(); | ^~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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.h:39: art/runtime/managed_stack.h:167:23: warning: 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/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/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 '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/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:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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_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_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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-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:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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::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::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]' 888 | kIsStatic ? klass->NumReferenceStaticFields() : klass->NumReferenceInstanceFields(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 912 | VisitFieldsReferences( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 913 | klass->GetReferenceInstanceOffsets(), visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 41 | VisitInstanceFieldsReferences(klass, visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ art/runtime/gc/heap.cc:2021:25: required from here 2021 | obj->VisitReferences(finder, VoidFunctor()); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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::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/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 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: 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++/14.2.0/bits/stl_construct.h:61, from /usr/include/c++/14.2.0/bits/stl_tempbuf.h:61, from /usr/include/c++/14.2.0/memory:66, from art/runtime/native_stack_dump.cc:19: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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::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]' 73 | ObjPtr ext(GetExtData()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 49 | VisitNativeRoots( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 50 | visitor, Runtime::Current()->GetClassLinker()->GetImagePointerSize()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 52 | as_klass->VisitReferences(klass, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 53 | visitor); | ~~~~~~~~ art/runtime/gc/heap.cc:2021:25: required from here 2021 | obj->VisitReferences(finder, VoidFunctor()); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ 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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/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++/14.2.0/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 '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_), | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/native/java_lang_Throwable.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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 '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]' 913 | klass->GetReferenceInstanceOffsets(), visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 41 | VisitInstanceFieldsReferences(klass, visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ 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]' 500 | object->VisitReferences(*this, *this); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ 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]' 1675 | patch_object_visitor.VisitObject(image_roots.Ptr()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ art/runtime/gc/space/image_space.cc:1736:41: required from here 1736 | DoRelocateSpaces(spaces, diff); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ 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/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/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" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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_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\ | ^ 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_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]' 41 | ClassTable* const class_table = GetClassTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 68 | class_loader->VisitReferences(klass, visitor); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ 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]' 500 | object->VisitReferences(*this, *this); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ 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]' 1675 | patch_object_visitor.VisitObject(image_roots.Ptr()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ art/runtime/gc/space/image_space.cc:1736:41: required from here 1736 | DoRelocateSpaces(spaces, diff); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ 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::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 { | ^~~~~~~~~~~~ art/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 '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/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 '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/java_lang_VMClassLoader.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/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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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::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:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 '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: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::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: 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: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/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::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::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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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/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/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/base/locks.h:25, from art/runtime/gc_root.h:20, from art/runtime/art_method.h:38: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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::gc::Heap::GetReferringObjects(art::VariableSizedHandleScope&, art::Handle, int32_t, std::vector >&)::ReferringObjectsFinder]' 50 | ObjPtr arr(GetObsoleteMethods()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 75 | ext->VisitNativeRoots(visitor, pointer_size); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ 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]' 49 | VisitNativeRoots( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 50 | visitor, Runtime::Current()->GetClassLinker()->GetImagePointerSize()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 52 | as_klass->VisitReferences(klass, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 53 | visitor); | ~~~~~~~~ art/runtime/gc/heap.cc:2021:25: required from here 2021 | obj->VisitReferences(finder, VoidFunctor()); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ 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/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/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::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]' 73 | ObjPtr ext(GetExtData()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 49 | VisitNativeRoots( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 50 | visitor, Runtime::Current()->GetClassLinker()->GetImagePointerSize()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 52 | as_klass->VisitReferences(klass, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 53 | visitor); | ~~~~~~~~ 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]' 500 | object->VisitReferences(*this, *this); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ 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]' 1675 | patch_object_visitor.VisitObject(image_roots.Ptr()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ art/runtime/gc/space/image_space.cc:1736:41: required from here 1736 | DoRelocateSpaces(spaces, diff); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ 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/gc_root.h:22: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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_)); | ^~~~~~~~~~~~~~~ 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/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 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/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::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::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::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: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::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_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/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/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: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 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 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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-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: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: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-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]' 50 | ObjPtr arr(GetObsoleteMethods()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 75 | ext->VisitNativeRoots(visitor, pointer_size); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ 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]' 49 | VisitNativeRoots( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 50 | visitor, Runtime::Current()->GetClassLinker()->GetImagePointerSize()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 52 | as_klass->VisitReferences(klass, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 53 | visitor); | ~~~~~~~~ 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]' 500 | object->VisitReferences(*this, *this); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ 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]' 1675 | patch_object_visitor.VisitObject(image_roots.Ptr()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ art/runtime/gc/space/image_space.cc:1736:41: required from here 1736 | DoRelocateSpaces(spaces, diff); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ 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 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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/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/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/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 instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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_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 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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: 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/functional:63, from libbase/include/android-base/logging.h:60, from art/runtime/monitor_objects_stack_visitor.h:20: /usr/include/c++/14.2.0/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/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++/14.2.0/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++/14.2.0/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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/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/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/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-inl.h:26: art/libartbase/base/length_prefixed_array.h:31:7: note: 'class art::LengthPrefixedArray' declared here 31 | class LengthPrefixedArray { | ^~~~~~~~~~~~~~~~~~~ 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 instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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::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: At global scope: art/runtime/thread.h:1574:27: warning: 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: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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::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:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/native/java_lang_invoke_MethodHandleImpl.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: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 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 '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: 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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from art/runtime/native_bridge_art_interface.h:22, from art/runtime/native_bridge_art_interface.cc:17: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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: 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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: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/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 '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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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-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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::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: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) \ | ^ 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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' 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++/14.2.0/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/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++/14.2.0/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++/14.2.0/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 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-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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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::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 <= art/runtime/native/java_lang_ref_FinalizerReference.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/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/base/locks.h:25, from art/runtime/gc_root.h:20, from art/runtime/art_method.h:38: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/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) \ | ^ 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/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ In file included from art/runtime/gc_root.h:22: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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-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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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; | ^~~~~ In file included from art/runtime/base/locks.h:25, from art/runtime/gc_root.h:20, from art/runtime/art_method.h:38: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/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/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_root.h:22: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/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/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::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 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/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/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/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/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/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-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/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: 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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-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/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? 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/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/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/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/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::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_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 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/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/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 '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_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 '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/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/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/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: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_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 { | ^~~~~~~~~~~~ host C++: libart <= art/runtime/native/java_lang_ref_Reference.cc art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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/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-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-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/interpreter/interpreter_intrinsics.cc:306:22: required from here 306 | if (str->GetCount() == str2->GetCount()) { | ~~~~~~~~~~~~~^~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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; | ^~~~~~~~~ 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/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; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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/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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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, 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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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::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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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::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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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/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-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/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]' 913 | klass->GetReferenceInstanceOffsets(), visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 41 | VisitInstanceFieldsReferences(klass, visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ 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]' 37 | obj->VisitReferences(visitor, ref_visitor); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/collector/mark_sweep.cc:1389:18: required from here 1389 | ScanObjectVisit(obj, mark_visitor, ref_visitor); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(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/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(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: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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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-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\ | ^ 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]' 41 | ClassTable* const class_table = GetClassTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 68 | class_loader->VisitReferences(klass, visitor); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ 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]' 37 | obj->VisitReferences(visitor, ref_visitor); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/collector/mark_sweep.cc:1389:18: required from here 1389 | ScanObjectVisit(obj, mark_visitor, ref_visitor); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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; | ^~~~~ host C++: libart <= art/runtime/native/java_lang_reflect_Array.cc 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-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/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 { | ^~~~~~~~ /usr/include/c++/14.2.0/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::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]' 73 | ObjPtr ext(GetExtData()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 49 | VisitNativeRoots( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 50 | visitor, Runtime::Current()->GetClassLinker()->GetImagePointerSize()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 52 | as_klass->VisitReferences(klass, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 53 | visitor); | ~~~~~~~~ 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]' 37 | obj->VisitReferences(visitor, ref_visitor); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/collector/mark_sweep.cc:1389:18: required from here 1389 | ScanObjectVisit(obj, mark_visitor, ref_visitor); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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_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/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::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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::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_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]' 50 | ObjPtr arr(GetObsoleteMethods()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 75 | ext->VisitNativeRoots(visitor, pointer_size); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ 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]' 49 | VisitNativeRoots( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 50 | visitor, Runtime::Current()->GetClassLinker()->GetImagePointerSize()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 52 | as_klass->VisitReferences(klass, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 53 | visitor); | ~~~~~~~~ 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]' 37 | obj->VisitReferences(visitor, ref_visitor); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/collector/mark_sweep.cc:1389:18: required from here 1389 | ScanObjectVisit(obj, mark_visitor, ref_visitor); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 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/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/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++/14.2.0/bits/stl_iterator.h:64, from /usr/include/c++/14.2.0/bits/range_access.h:38, from /usr/include/c++/14.2.0/string_view:51, from libnativehelper/include/nativehelper/scoped_utf_chars.h:28, from art/runtime/native/dalvik_system_VMRuntime.cc:27: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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, 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/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::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/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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::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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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++/14.2.0/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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: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, 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::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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 { | ^~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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); | ~~~~~~^~~~~~~~~~~~~~~~~~~ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/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_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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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, 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/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/base/locks.h:25, from art/runtime/gc_root.h:20, from art/runtime/art_method.h:38: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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_root.h:22: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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++/14.2.0/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/functional:63, from libbase/include/android-base/logging.h:60, from art/runtime/art_method.h:23: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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/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) \ | ^ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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]' 87 | return GetLengthFromCount(GetCount()); | ~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/string-inl.h:46:28: required from here 46 | int32_t count = GetLength(); | ~~~~~~~~~^~ 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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 { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] /usr/include/c++/14.2.0/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 unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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 unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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: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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/base/locks.h:25, from art/runtime/class_linker.h:29, from art/runtime/native/dalvik_system_VMDebug.cc:29: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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/runtime/base/locks.h:25, from art/runtime/gc_root.h:20, from art/runtime/art_method.h:38: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/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\ | ^ In file included from art/runtime/gc_root.h:22: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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-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 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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++/14.2.0/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++/14.2.0/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 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from /usr/include/c++/14.2.0/bits/locale_classes.h:40, from /usr/include/c++/14.2.0/bits/ios_base.h:41, from /usr/include/c++/14.2.0/ios:44, from /usr/include/c++/14.2.0/istream:40, from /usr/include/c++/14.2.0/sstream:40, from art/runtime/native/dalvik_system_VMDebug.cc:22: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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/base/locks.h:25, from art/runtime/class_linker.h:29, from art/runtime/native/dalvik_system_DexFile.cc:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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); | ^~~~~~~~ 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/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++/14.2.0/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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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/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/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 '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] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object.h:25: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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); | ^~~~~~~~ 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: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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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 '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 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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::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/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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from /usr/include/c++/14.2.0/bits/locale_classes.h:40, from /usr/include/c++/14.2.0/bits/ios_base.h:41, from /usr/include/c++/14.2.0/ios:44, from /usr/include/c++/14.2.0/istream:40, from /usr/include/c++/14.2.0/sstream:40, from art/runtime/native/dalvik_system_DexFile.cc:19: /usr/include/c++/14.2.0/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++/14.2.0/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 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++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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.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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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 '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/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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/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/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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/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_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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::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: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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/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]' 465 | access_to->GetClassLoader()); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:526:40: required from here 526 | return ResolvedFieldAccessTest(access_to, field, dex_cache, field_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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-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/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/gc_root.h:22, from art/runtime/class_linker.h:34: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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: 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62, from art/libartbase/base/atomic.h:23: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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++/14.2.0/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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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/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/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) \ | ^ 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::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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_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/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/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/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_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::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::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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_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/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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_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/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/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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-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/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/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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_)); | ^~~~~~~~~~~~~~~ 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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ 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_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/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 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/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/heap.cc:3935:6: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 3935 | void Heap::IncrementNumberOfBytesFreedRevoke(size_t freed_bytes_revoke) { | ^~~~ 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-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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 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::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::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::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 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::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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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::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/gc_root.h:22, from art/runtime/class_linker.h:34: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::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 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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::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::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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::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 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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: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::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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\ | ^ In file included from /usr/include/c++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/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::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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 '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/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc_root.h:22: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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_); | ^~~~~~~~~~~~~~~ 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/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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/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/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_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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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/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/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/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::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: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::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::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 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 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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++/14.2.0/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++/14.2.0/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 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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: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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/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 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/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/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.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/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/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/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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::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-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++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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 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/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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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/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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from /usr/include/c++/14.2.0/bits/locale_classes.h:40, from /usr/include/c++/14.2.0/bits/ios_base.h:41, from /usr/include/c++/14.2.0/ios:44, from /usr/include/c++/14.2.0/ostream:40, from /usr/include/c++/14.2.0/iostream:41, from art/runtime/native/java_lang_Class.cc:19: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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_; | ^ 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/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 '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-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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/functional:63, from libbase/include/android-base/logging.h:60, from art/runtime/native/dalvik_system_ZygoteHooks.cc:21: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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.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: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 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: At global scope: art/runtime/thread.h:1574:27: warning: 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-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:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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/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)': 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::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_; | ^~~~~~~~~~~~~~~~~~~~~~~ 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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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::kWithReadBarrier]': art/runtime/hidden_api.h:83:60: required from here 83 | dex_file_(GetDexFileFromDexCache(klass->GetDexCache())), | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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/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/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::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::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::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::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::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::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::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::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/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.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 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/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/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 '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/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'} [-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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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::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: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::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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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::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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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-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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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_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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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::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::GetExtData() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/class_linker.cc:181:45: required from here 181 | ObjPtr ext(c->GetExtData()); | ~~~~~~~~~~~~~^~ 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::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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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, 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++/14.2.0/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_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++/14.2.0/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++/14.2.0/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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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::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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86: 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 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 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/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* 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* In file included from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/handle_scope-inl.h:20: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ 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/mirror/object_reference.h:167:34: note: remove the '< >' 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/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/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/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/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::GetClassSize() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/class_linker.cc:797:3: required from here 797 | CHECK_EQ(java_lang_ref_Reference->GetClassSize(), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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/jvalue.h:25: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 */ \ | ^~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/interpreter/interpreter_intrinsics.cc:402:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 402 | static ALWAYS_INLINE bool MterpReachabilityFence(ShadowFrame* shadow_frame ATTRIBUTE_UNUSED, | ^~~~~~~~~~~~~~~~~~~~~~ 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/interpreter/interpreter_intrinsics.cc:362:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:362:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:362:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_intrinsics.cc:362:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:362:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_intrinsics.cc:362:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 431 | ALWAYS_INLINE ArtMethod* FindMethodToCall(uint32_t method_idx, | ^~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:362:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_intrinsics.cc:346:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_intrinsics.cc:346:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_intrinsics.cc:343:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:342:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_intrinsics.cc:341:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_intrinsics.cc:339:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:294:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 294 | static ALWAYS_INLINE bool MterpStringEquals(ShadowFrame* shadow_frame, | ^~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:266:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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 unless also declared 'inline' [-Wattributes] 59 | ALWAYS_INLINE JValue ExecuteSwitchImpl(Thread* self, const CodeItemDataAccessor& accessor, | ^~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:206:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 206 | static ALWAYS_INLINE bool MterpStringCompareTo(ShadowFrame* shadow_frame, | ^~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_switch_impl.h:59:22: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_intrinsics.cc:182:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 182 | static ALWAYS_INLINE bool MterpStringCharAt(ShadowFrame* shadow_frame, | ^~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_intrinsics.cc:179:17: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:176:17: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:173:17: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:170:17: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:164:17: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:161:17: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:158:17: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:155:17: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:152:17: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:149:17: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_intrinsics.cc:140:21: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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.cc:43:45: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 43 | ALWAYS_INLINE static ObjPtr ObjArg(uint32_t arg) | ^~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:131:21: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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/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/interpreter/interpreter_intrinsics.cc:113:17: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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/interpreter/interpreter_intrinsics.cc:107:17: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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, \ | ^~~~ 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/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 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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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/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/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::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 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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::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 '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::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::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::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) | ~~~~~~~~~~^~~~~~ In file included from art/runtime/base/locks.h:25, from art/runtime/gc_root.h:20, from art/runtime/art_method.h:38: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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.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 { | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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::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/gc_root.h:22: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/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 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_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/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_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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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::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/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: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::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/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++/14.2.0/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.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::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/class_linker.cc:1820:63: required from here 1820 | ObjPtr vtable = klass->GetVTable(); | ~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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::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/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-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: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::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-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/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/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/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/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/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/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 int (*)(_JNIEnv*, _jobject*, _jmethodID*, const jvalue*)'} to 'jlong (*)(JNIEnv*, jobject, jmethodID, jvalue*)' {aka 'long int (*)(_JNIEnv*, _jobject*, _jmethodID*, jvalue*)'} [-fpermissive] 4004 | }; | ^ | | | jlong (*)(JNIEnv*, jobject, jmethodID, const jvalue*) {aka 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/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/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/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 int (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, const jvalue*)'} to 'jlong (*)(JNIEnv*, jobject, jclass, jmethodID, jvalue*)' {aka 'long int (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 4004 | }; | ^ | | | jlong (*)(JNIEnv*, jobject, jclass, jmethodID, const jvalue*) {aka 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 int (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)'} to 'jlong (*)(JNIEnv*, jclass, jmethodID, jvalue*)' {aka 'long int (*)(_JNIEnv*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 4004 | }; | ^ | | | jlong (*)(JNIEnv*, jclass, jmethodID, const jvalue*) {aka long int (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)} 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*)} 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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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 '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_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/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: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 'void art::mirror::Class::SetClassLoader(art::ObjPtr) [with bool kCheckTransaction = false]': art/runtime/class_linker.cc:2205:62: required from here 2205 | klass->SetClassLoader(loader); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ 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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/handle_scope-inl.h:20: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ 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/object_reference.h:167:34: note: remove the '< >' /usr/include/c++/14.2.0/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++/14.2.0/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 instantiation of 'art::ClassTable* art::mirror::ClassLoader::GetClassTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/class_linker.cc:2350:64: required from here 2350 | ClassTable* const class_table = class_loader->GetClassTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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 'void art::mirror::Class::SetClassLoader(art::ObjPtr) [with bool kCheckTransaction = true]': art/runtime/class_linker.cc:3544:24: required from here 3544 | klass->SetClassLoader(class_loader); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ 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_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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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, 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/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/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/mirror/object.h:25, from art/runtime/native/java_lang_Thread.cc:21: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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::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/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/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::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.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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/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/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 { | ^~~~~~~~ /usr/include/c++/14.2.0/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/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/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/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/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/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/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]' 87 | return GetLengthFromCount(GetCount()); | ~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/string-inl.h:46:28: required from here 46 | int32_t count = GetLength(); | ~~~~~~~~~^~ 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/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/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]' 87 | return GetLengthFromCount(GetCount()); | ~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/string-inl.h:46:28: required from here 46 | int32_t count = GetLength(); | ~~~~~~~~~^~ 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: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::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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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: 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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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++/14.2.0/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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::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/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; | ^~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/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::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::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_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/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/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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/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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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/native/java_lang_reflect_Constructor.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/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/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) {} | ~~~~~~~~~^~~~~ 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 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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ 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/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_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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/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" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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: At global scope: art/runtime/thread.h:1574:27: warning: 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::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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; | ^~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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'? 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 '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] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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/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/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iteratorGetReferenceInstanceOffsets(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86, 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/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.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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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++/14.2.0/bits/stl_iterator.h:64, from /usr/include/c++/14.2.0/bits/range_access.h:38, from /usr/include/c++/14.2.0/string_view:51, from art/runtime/common_throws.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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(Array, length_)); art/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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/list:79, 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/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 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 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/list:62: /usr/include/c++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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-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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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::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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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::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::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/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::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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::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 '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/mirror/object.h:25, from art/runtime/mirror/array.h:24, from art/runtime/native/java_lang_System.cc:24: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/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/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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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:87:53: required from 'int32_t art::mirror::String::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]' 87 | return GetLengthFromCount(GetCount()); | ~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/string-inl.h:46:28: required from here 46 | int32_t count = GetLength(); | ~~~~~~~~~^~ 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: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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 '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 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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::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::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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/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 '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 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86, 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-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::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/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++/14.2.0/bits/stl_iterator.h:64, from /usr/include/c++/14.2.0/bits/range_access.h:38, from /usr/include/c++/14.2.0/string_view:51, from art/runtime/common_throws.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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/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++/14.2.0/bits/stl_iterator.h:64, from /usr/include/c++/14.2.0/bits/range_access.h:38, from /usr/include/c++/14.2.0/string_view:51, from art/runtime/common_throws.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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 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/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::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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86, 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-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 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-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 '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/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::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 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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/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 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/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++/14.2.0/bits/stl_iterator.h:64, from /usr/include/c++/14.2.0/bits/range_access.h:38, from /usr/include/c++/14.2.0/string_view:51, from art/runtime/common_throws.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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.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:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 '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:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 '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/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::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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::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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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 '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<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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 '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); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 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/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/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::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/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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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::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 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:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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_)); | ^~~~~~~~~~~~~~~ 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::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_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::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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::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/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::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: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.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: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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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); | ^~~~~~~~~~~~~~~~~~~~~~~ art/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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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.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::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 '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/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]' 87 | return GetLengthFromCount(GetCount()); | ~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/string-inl.h:46:28: required from here 46 | int32_t count = GetLength(); | ~~~~~~~~~^~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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/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/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++/14.2.0/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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) \ | ^ 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/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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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::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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/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::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_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/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_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/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_), | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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 '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: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_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.h:39: art/runtime/managed_stack.h:167:23: warning: 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::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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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/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/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 '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/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<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::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::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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' 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/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/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 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/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 '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.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::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 '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; | ^~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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/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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/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:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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]' 87 | return GetLengthFromCount(GetCount()); | ~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/string-inl.h:46:28: required from here 46 | int32_t count = GetLength(); | ~~~~~~~~~^~ 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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 '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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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); | ^~~~~~~~~~~~~~~~~~~~~~~ art/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion 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) | ^~~~~~~~~ art/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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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-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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/functional:63, from libbase/include/android-base/logging.h:60, from art/runtime/art_method.h:23: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 '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/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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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::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:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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/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 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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/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, 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 { | ^~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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/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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/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/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) | ^~~~~~~~~~~~~~~~~~~ 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/runtime_options.h: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/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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/runtime_options.h: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/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/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 '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/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_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_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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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/runtime_options.h: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/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/runtime_options.h: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/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/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/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/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/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: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) | ^~~~~~~~~~~~~~~~~~~ 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: 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/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/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/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/runtime_options.h: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/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/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 '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_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-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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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::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/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]' 82 | super_class->NumReferenceInstanceFields(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker.cc:1418:50: required from here 1416 | obj->VisitReferences(visitor, visitor); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ 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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' In file included from art/runtime/base/locks.h:25, from art/runtime/gc_root.h:20, from art/runtime/art_method.h:38: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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_root.h:22: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67: 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::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 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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/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/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:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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/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:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/emulated_stack_frame.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/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/base/locks.h:25: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 '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.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/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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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/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/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::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::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::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::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/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++/14.2.0/bits/stl_construct.h:61, from /usr/include/c++/14.2.0/bits/stl_tempbuf.h:61, from /usr/include/c++/14.2.0/memory:66, from art/libartbase/base/zip_archive.h:21: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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 '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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_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::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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: | ^~~~ art/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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 '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 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/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/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 '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/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/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/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/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/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/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/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/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/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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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: 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>*, \ | ^~~~~~~~~~~~~~~~~~~ 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/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/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 '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/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: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/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/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::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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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, 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++/14.2.0/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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 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 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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_root.h:22, from art/runtime/class_linker.h:34: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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:87:53: required from 'int32_t art::mirror::String::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]' 87 | return GetLengthFromCount(GetCount()); | ~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/string-inl.h:46:28: required from here 46 | int32_t count = GetLength(); | ~~~~~~~~~^~ 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: 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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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::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_field-inl.h:405:45: required from here 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/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::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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++/14.2.0/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++/14.2.0/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/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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/native/java_lang_reflect_Executable.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/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 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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: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/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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_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; | ^~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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_; | ^ art/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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_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 59 | Handle old_methods(hs.NewHandle(h_this->GetObsoleteMethods())); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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/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 { | ^~~~~~ In file included from /usr/include/c++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/ext/concurrence.h:34, from /usr/include/c++/14.2.0/bits/shared_ptr_base.h:62, from /usr/include/c++/14.2.0/bits/shared_ptr.h:53, from /usr/include/c++/14.2.0/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-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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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::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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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/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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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::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/native/java_lang_reflect_Field.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++/14.2.0/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++/14.2.0/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++/14.2.0/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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/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 instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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_), | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/native/java_lang_reflect_Method.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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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-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.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-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 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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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 '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++/14.2.0/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++/14.2.0/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++/14.2.0/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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()); | ^~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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::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/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 '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 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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 '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:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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); | ^~~~~~~~~~~~~~~~~~~~~~~ art/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 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 '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/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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 int (*)(_JNIEnv*, _jobject*, _jmethodID*, const jvalue*)'} to 'jlong (*)(JNIEnv*, jobject, jmethodID, jvalue*)' {aka 'long int (*)(_JNIEnv*, _jobject*, _jmethodID*, jvalue*)'} [-fpermissive] 3266 | }; | ^ | | | jlong (*)(JNIEnv*, jobject, jmethodID, const jvalue*) {aka 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 int (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, const jvalue*)'} to 'jlong (*)(JNIEnv*, jobject, jclass, jmethodID, jvalue*)' {aka 'long int (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 3266 | }; | ^ | | | jlong (*)(JNIEnv*, jobject, jclass, jmethodID, const jvalue*) {aka 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 int (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)'} to 'jlong (*)(JNIEnv*, jclass, jmethodID, jvalue*)' {aka 'long int (*)(_JNIEnv*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 3266 | }; | ^ | | | jlong (*)(JNIEnv*, jclass, jmethodID, const jvalue*) {aka 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*)} In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map: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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/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/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++/14.2.0/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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++/14.2.0/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++/14.2.0/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/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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/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/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.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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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 { | ^~~~~~ In file included from /usr/include/c++/14.2.0/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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.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/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/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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-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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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::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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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-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::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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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-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 '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::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/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); | ^~~~~~~~ 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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]' 87 | return GetLengthFromCount(GetCount()); | ~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/string-inl.h:46:28: required from here 46 | int32_t count = GetLength(); | ~~~~~~~~~^~ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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/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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 '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-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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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++/14.2.0/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++/14.2.0/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++/14.2.0/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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:87:6: note: shadowed declaration is here 87 | T* 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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/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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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::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/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 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 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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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-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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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/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 { | ^~~~~~~~ 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) | ~~~^~~~~~ /usr/include/c++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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++/14.2.0/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++/14.2.0/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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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: 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++/14.2.0/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++/14.2.0/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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/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::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: 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 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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::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/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: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 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 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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 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) \ | ^ In file included from art/runtime/gc_root.h:22: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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-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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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-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 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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.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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/functional:63, from art/libdexfile/dex/dex_file_types.h:22, from art/runtime/art_field.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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:39: art/runtime/managed_stack.h:167:23: warning: 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::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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::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::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::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: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::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/hidden_api.h:83:60: required from here 83 | dex_file_(GetDexFileFromDexCache(klass->GetDexCache())), | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/native/java_lang_reflect_Parameter.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 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:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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::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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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::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/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 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 '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: At global scope: art/runtime/thread.h:1574:27: warning: 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/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 '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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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_field-inl.h:405:45: required from here 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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_; | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/hidden_api.h:83:60: required from here 83 | dex_file_(GetDexFileFromDexCache(klass->GetDexCache())), | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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-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/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 '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/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_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::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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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/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++/14.2.0/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/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++/14.2.0/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/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:87:53: required from 'int32_t art::mirror::String::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]' 87 | return GetLengthFromCount(GetCount()); | ~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/string-inl.h:46:28: required from here 46 | int32_t count = GetLength(); | ~~~~~~~~~^~ 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 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 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 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 '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::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/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::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/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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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_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/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: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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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) \ | ^ 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) \ | ^ /usr/include/c++/14.2.0/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/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++/14.2.0/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++/14.2.0/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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); | ^~~~~~~~ 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 'unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ 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/subtype_check_info.h:222:55: warning: in 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: 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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_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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_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::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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.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 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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 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.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 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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67, 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/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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/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::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 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 2003 | if (cls->GetDexCache() == nullptr) { | ~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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: 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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47: /usr/include/c++/14.2.0/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++/14.2.0/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-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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::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 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/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::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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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_)); | ^~~~~~~~~~~~~~~ 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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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_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; | ^~~~~~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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/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::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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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::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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/native/java_lang_reflect_Proxy.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: 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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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-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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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.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-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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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.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/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_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 '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/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_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++/14.2.0/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++/14.2.0/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++/14.2.0/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 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 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-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::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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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::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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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::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/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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: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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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::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, 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++/14.2.0/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++/14.2.0/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/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/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/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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; | ^~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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_field-inl.h:405:45: required from here 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::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]' 888 | kIsStatic ? klass->NumReferenceStaticFields() : klass->NumReferenceInstanceFields(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 912 | VisitFieldsReferences( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 913 | klass->GetReferenceInstanceOffsets(), visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 41 | VisitInstanceFieldsReferences(klass, visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ art/runtime/class_linker.cc:1418:50: required from here 1416 | obj->VisitReferences(visitor, visitor); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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 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]' 73 | ObjPtr ext(GetExtData()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 49 | VisitNativeRoots( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 50 | visitor, Runtime::Current()->GetClassLinker()->GetImagePointerSize()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 52 | as_klass->VisitReferences(klass, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 53 | visitor); | ~~~~~~~~ art/runtime/class_linker.cc:1418:50: required from here 1416 | obj->VisitReferences(visitor, visitor); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ 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/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/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/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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 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/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.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/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/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::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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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::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 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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::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::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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/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/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_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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::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::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_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 '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-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/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/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 '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 '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/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::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:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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: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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_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:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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: art/runtime/thread.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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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/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.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) \ | ^ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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::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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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/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 83 | dex_file_(GetDexFileFromDexCache(klass->GetDexCache())), | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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/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/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/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 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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::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 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/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); | ~~~~~~^~~~~~~~~~~~~~~~~~~ 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/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/hidden_api.h:83:60: required from here 83 | dex_file_(GetDexFileFromDexCache(klass->GetDexCache())), | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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/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 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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::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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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::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: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::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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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 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/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | 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:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/interpreter/interpreter_common.h: At global scope: art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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:87:53: required from 'int32_t art::mirror::String::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]' 87 | return GetLengthFromCount(GetCount()); | ~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/string-inl.h:46:28: required from here 46 | int32_t count = GetLength(); | ~~~~~~~~~^~ 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/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::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++/14.2.0/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-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/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 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-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/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-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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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: 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++/14.2.0/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++/14.2.0/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/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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/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/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/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/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/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_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/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/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/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/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/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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_)); | ^~~~~~~~~~~~~~~ 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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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/interpreter/interpreter_switch_impl.h:59:22: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ 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/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | 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: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 unless also declared 'inline' [-Wattributes] 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 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_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++/14.2.0/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.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: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/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: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::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::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 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::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: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: 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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 '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/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]' 89 | ret->SetType(type.Get()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ art/runtime/jni/jni_internal.cc:792:63: required from here 792 | mirror::Field::CreateFromArtField(soa.Self(), f, true)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ 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-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/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]' 90 | ret->SetDeclaringClass(field->GetDeclaringClass()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/jni/jni_internal.cc:792:63: required from here 792 | mirror::Field::CreateFromArtField(soa.Self(), f, true)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ 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]' 91 | ret->SetAccessFlags(field->GetAccessFlags()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/jni/jni_internal.cc:792:63: required from here 792 | mirror::Field::CreateFromArtField(soa.Self(), f, true)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ 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]' 92 | ret->SetDexFieldIndex(dex_field_index); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ art/runtime/jni/jni_internal.cc:792:63: required from here 792 | mirror::Field::CreateFromArtField(soa.Self(), f, true)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ 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]' 93 | ret->SetOffset(field->GetOffset().Int32Value()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/jni/jni_internal.cc:792:63: required from here 792 | mirror::Field::CreateFromArtField(soa.Self(), f, true)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ 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/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/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/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/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ 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]' 50 | ObjPtr arr(GetObsoleteMethods()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 75 | ext->VisitNativeRoots(visitor, pointer_size); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ 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]' 49 | VisitNativeRoots( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 50 | visitor, Runtime::Current()->GetClassLinker()->GetImagePointerSize()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 52 | as_klass->VisitReferences(klass, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 53 | visitor); | ~~~~~~~~ art/runtime/class_linker.cc:1418:50: required from here 1416 | obj->VisitReferences(visitor, visitor); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ 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:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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::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/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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/mirror/object.h:24: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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::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/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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::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:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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-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 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: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/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::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 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/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 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_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/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/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/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 '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::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::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::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 '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/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/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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); | ~~~~~~^~~~~~~~~~~~~~~~~~~ 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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ 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 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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::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:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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::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: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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-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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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/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/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 '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] 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::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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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::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::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:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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_)); | ^~~~~~~~~~~~~~~ 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:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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_)); | ^~~~~~~~~~~~~~~ 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/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::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::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 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/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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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 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::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/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/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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: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/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 instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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::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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/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); | ^~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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::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); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 '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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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 instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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-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/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/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: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::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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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/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/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/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) \ | ^ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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: 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/functional:63, from libbase/include/android-base/logging.h:60, from art/runtime/art_method.h:23: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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_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::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::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: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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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.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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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 '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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 '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/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" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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::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/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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-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: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::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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]' 87 | return GetLengthFromCount(GetCount()); | ~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/string-inl.h:46:28: required from here 46 | int32_t count = GetLength(); | ~~~~~~~~~^~ 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 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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/native_stack_dump.cc:57: 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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] art/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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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/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]' 89 | ret->SetType(type.Get()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ art/runtime/interpreter/unstarted_runtime.cc:368:72: required from here 368 | field = mirror::Field::CreateFromArtField( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 369 | self, found, true); | ~~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] 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]' 90 | ret->SetDeclaringClass(field->GetDeclaringClass()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/unstarted_runtime.cc:368:72: required from here 368 | field = mirror::Field::CreateFromArtField( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 369 | self, found, true); | ~~~~~~~~~~~~~~~~~~ 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]' 91 | ret->SetAccessFlags(field->GetAccessFlags()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/unstarted_runtime.cc:368:72: required from here 368 | field = mirror::Field::CreateFromArtField( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 369 | self, found, true); | ~~~~~~~~~~~~~~~~~~ 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]' 92 | ret->SetDexFieldIndex(dex_field_index); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ art/runtime/interpreter/unstarted_runtime.cc:368:72: required from here 368 | field = mirror::Field::CreateFromArtField( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 369 | self, found, true); | ~~~~~~~~~~~~~~~~~~ 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-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/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]' 93 | ret->SetOffset(field->GetOffset().Int32Value()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/unstarted_runtime.cc:368:72: required from here 368 | field = mirror::Field::CreateFromArtField( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 369 | self, found, true); | ~~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67, 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/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]' 89 | ret->SetType(type.Get()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ art/runtime/interpreter/unstarted_runtime.cc:376:73: required from here 376 | field = mirror::Field::CreateFromArtField( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 377 | self, found, true); | ~~~~~~~~~~~~~~~~~~ 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-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/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]' 90 | ret->SetDeclaringClass(field->GetDeclaringClass()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/unstarted_runtime.cc:376:73: required from here 376 | field = mirror::Field::CreateFromArtField( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 377 | self, found, true); | ~~~~~~~~~~~~~~~~~~ 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]' 91 | ret->SetAccessFlags(field->GetAccessFlags()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/unstarted_runtime.cc:376:73: required from here 376 | field = mirror::Field::CreateFromArtField( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 377 | self, found, true); | ~~~~~~~~~~~~~~~~~~ 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]' 92 | ret->SetDexFieldIndex(dex_field_index); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ art/runtime/interpreter/unstarted_runtime.cc:376:73: required from here 376 | field = mirror::Field::CreateFromArtField( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 377 | self, found, true); | ~~~~~~~~~~~~~~~~~~ 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-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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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/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]' 93 | ret->SetOffset(field->GetOffset().Int32Value()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/unstarted_runtime.cc:376:73: required from here 376 | field = mirror::Field::CreateFromArtField( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 377 | self, found, true); | ~~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/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/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ /usr/include/c++/14.2.0/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 unless also declared 'inline' [-Wattributes] 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_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++/14.2.0/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: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | 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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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::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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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/base/locks.h:25, from art/runtime/gc_root.h:20, from art/runtime/art_method.h:38: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47: /usr/include/c++/14.2.0/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++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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_root.h:22: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/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/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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.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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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_method-inl.h:296:45: required from here 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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 unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:157:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/class_linker.cc:2824:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 2824 | ALWAYS_INLINE void FilterDexFileCaughtExceptions(Thread* self, ClassLinker* class_linker) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/class_linker.cc:2811:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 2811 | ALWAYS_INLINE bool MatchesDexFileCaughtExceptions(ObjPtr throwable, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 149 | ALWAYS_INLINE bool DoFieldPutCommon(Thread* self, | ^~~~~~~~~~~~~~~~ art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/common_dex_operations.h:91:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/common_dex_operations.h:91:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/common_dex_operations.h:91:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/common_dex_operations.h:91:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/common_dex_operations.h:91:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/common_dex_operations.h:91:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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.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/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.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); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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: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); | ^~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/mirror/field.cc:40:74: required from here 40 | const ObjPtr dex_cache = declaring_class->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/interpreter/interpreter_common.h: At global scope: art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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 '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::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, 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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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::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_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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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_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++/14.2.0/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++/14.2.0/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++/14.2.0/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 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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: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/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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map: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::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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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++/14.2.0/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++/14.2.0/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 '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/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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/native/java_util_concurrent_atomic_AtomicLong.cc art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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 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/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.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 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::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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.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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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/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::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 '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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 '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 '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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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 '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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: 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/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" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/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/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 { | ^~~~~~ 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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::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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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: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_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 '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 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 '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/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/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.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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 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); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/native/libcore_util_CharsetUtils.cc 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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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/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/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/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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: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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 '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 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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::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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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++/14.2.0/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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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_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++/14.2.0/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++/14.2.0/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 instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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-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::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_); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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::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/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: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 '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_), | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/native/org_apache_harmony_dalvik_ddmc_DdmServer.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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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++/14.2.0/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/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++/14.2.0/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++/14.2.0/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/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 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 '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::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/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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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); | ^~~~~~~~~~~~~~~~~~~~~~~ art/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 '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/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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/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 | } | ^ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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.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++/14.2.0/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++/14.2.0/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/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/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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/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/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 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 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); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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 '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_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 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::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::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::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 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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::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.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::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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/art_method-inl.h:296:45: required from here 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 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/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]' 87 | return GetLengthFromCount(GetCount()); | ~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/string-inl.h:46:28: required from here 46 | int32_t count = GetLength(); | ~~~~~~~~~^~ 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-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::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/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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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_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/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_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/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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/hidden_api.h:83:60: required from here 83 | dex_file_(GetDexFileFromDexCache(klass->GetDexCache())), | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/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 98 | ObjPtr existing(GetExtData()); | ~~~~~~~~~~^~ 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::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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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: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 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 243 | if (kIsDebugBuild && new_class_size < GetClassSize()) { | ~~~~~~~~~~~~^~ 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 256 | ObjPtr name = h_this->GetName(); | ~~~~~~~~~~~~~~~^~ 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.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 312 | os << " objectSize=" << SizeOf() << " " | ~~~~~~^~ 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_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from libbase/include/android-base/stringprintf.h:21, from art/runtime/native/java_lang_reflect_Executable.cc:19: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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::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::GetName() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class.cc:1014:83: required from here 1014 | ObjPtr name = klass->GetName(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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_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/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_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::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_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::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::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-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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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::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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 { | ^~~~~~~~ /usr/include/c++/14.2.0/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 { | ^~~~~~ art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/object.h:24: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::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/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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/functional:63, from libbase/include/android-base/logging.h:60, from art/runtime/art_method.h:23: /usr/include/c++/14.2.0/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/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++/14.2.0/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++/14.2.0/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/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/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/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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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-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_field-inl.h:405:45: required from here 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/base/locks.h:25, from art/runtime/gc_root.h:20, from art/runtime/art_method.h:38: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' 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/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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-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 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/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) \ | ^ 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-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_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc_root.h:22: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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: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/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/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/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::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/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 { | ^~~~~~ 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 | } | ^ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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] 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::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/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/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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/gc_root.h:22: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/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_), | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/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/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/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/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/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); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/native/sun_misc_Unsafe.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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/base/locks.h:25, from art/runtime/gc_root.h:20, from art/runtime/art_method.h:38: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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: { | ^~~~ 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) \ | ^ In file included from art/runtime/gc_root.h:22: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/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\ | ^ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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/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\ | ^ 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 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 '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::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/subtype_check_info.h:222:55: warning: in call 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/throwable.cc: In member function 'art::ObjPtr 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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/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/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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from libbase/include/android-base/stringprintf.h:21, from art/runtime/native/java_lang_reflect_Field.cc:19: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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_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++/14.2.0/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++/14.2.0/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++/14.2.0/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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-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/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_DdmVmInternal.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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 '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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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/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++/14.2.0/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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++/14.2.0/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++/14.2.0/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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 '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/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 '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 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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.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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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++/14.2.0/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/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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: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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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 { | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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 '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/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.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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' host C++: libart <= art/runtime/non_debuggable_classes.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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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-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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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/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-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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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.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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::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::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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::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 instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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::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-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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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-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::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 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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: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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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::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_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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 '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::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::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/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 149 | ALWAYS_INLINE bool DoFieldPutCommon(Thread* self, | ^~~~~~~~~~~~~~~~ art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/common_dex_operations.h:91:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/common_dex_operations.h:91:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/common_dex_operations.h:91:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/common_dex_operations.h:91:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/common_dex_operations.h:91:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/common_dex_operations.h:91:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/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::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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/list:62, from art/runtime/class_linker.h:20: /usr/include/c++/14.2.0/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/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/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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::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::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/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::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/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) \ | ^ 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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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/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/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_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::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/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/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::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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::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_), | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from libbase/include/android-base/stringprintf.h:21, from art/runtime/native/java_lang_reflect_Parameter.cc:19: /usr/include/c++/14.2.0/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++/14.2.0/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_), | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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/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 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 '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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 | } | ^ In file included from art/runtime/gc_root.h:22, from art/runtime/class_linker.h:34: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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-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]' 87 | return GetLengthFromCount(GetCount()); | ~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/string-inl.h:46:28: required from here 46 | int32_t count = GetLength(); | ~~~~~~~~~^~ 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/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 '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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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/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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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: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 instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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/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/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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-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::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 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 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::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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::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/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++/14.2.0/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++/14.2.0/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 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]' 82 | super_class->NumReferenceInstanceFields(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class.cc:1195:45: required from here 1195 | h_new_class_obj->Object::VisitReferences(ReadBarrierOnNativeRootsVisitor(), VoidFunctor()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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-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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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::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::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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-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 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::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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-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 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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++/14.2.0/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/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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/list:79: 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/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 39 | trace->Init(declaring_class.Get(), method_name.Get(), file_name.Get(), line_number); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 41 | trace->Init(declaring_class.Get(), method_name.Get(), file_name.Get(), line_number); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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/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/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/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/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::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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: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/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 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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.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::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::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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 '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); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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::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::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 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/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 '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/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::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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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 '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/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.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::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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.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); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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 | } | ^ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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: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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 '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] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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::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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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\ | ^ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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::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(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ In file included from art/runtime/base/locks.h:25, from art/runtime/gc_root.h:20, from art/runtime/art_method.h:38: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/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/gc_root.h:22: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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: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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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; | ^~~~~~ host C++: libart <= art/runtime/oat.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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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/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.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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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:519:54: required from 'static void art::SubtypeCheck::WriteStatusImpl(ClassPtr, art::ClassStatus) [with ClassPtr = art::ObjPtr]' 519 | SubtypeCheckBitsAndStatus old_value = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:369:20: required from 'static void art::SubtypeCheck::WriteStatus(ClassPtr, art::ClassStatus) [with ClassPtr = art::ObjPtr]' 369 | WriteStatusImpl(klass, status); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ art/runtime/mirror/class.cc:188:53: required from here 188 | SubtypeCheck>::WriteStatus(h_this_ptr, new_status); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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 '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-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]' 465 | access_to->GetClassLoader()); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:526:40: required from here 526 | return ResolvedFieldAccessTest(access_to, field, dex_cache, field_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 '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]' 913 | klass->GetReferenceInstanceOffsets(), visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 41 | VisitInstanceFieldsReferences(klass, visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ art/runtime/mirror/class.cc:1195:45: required from here 1195 | h_new_class_obj->Object::VisitReferences(ReadBarrierOnNativeRootsVisitor(), VoidFunctor()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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::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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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::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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67: 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:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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: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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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); | ^~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 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]' 41 | ClassTable* const class_table = GetClassTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 68 | class_loader->VisitReferences(klass, visitor); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ art/runtime/mirror/class.cc:1195:45: required from here 1195 | h_new_class_obj->Object::VisitReferences(ReadBarrierOnNativeRootsVisitor(), VoidFunctor()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 '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 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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; | ^~~~~~ 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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::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 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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_), | ^~~~~~~~~~~~~~~~~~~~~~~ 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 '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/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::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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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/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 | } | ^ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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]' 888 | kIsStatic ? klass->NumReferenceStaticFields() : klass->NumReferenceInstanceFields(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 912 | VisitFieldsReferences( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 913 | klass->GetReferenceInstanceOffsets(), visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 41 | VisitInstanceFieldsReferences(klass, visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ art/runtime/mirror/class.cc:1195:45: required from here 1195 | h_new_class_obj->Object::VisitReferences(ReadBarrierOnNativeRootsVisitor(), VoidFunctor()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in 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/mirror/class-inl.h:587:7: note: in 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 '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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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::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::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 '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] 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/oat_file.cc libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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-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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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::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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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_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]' 50 | ObjPtr arr(GetObsoleteMethods()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 75 | ext->VisitNativeRoots(visitor, pointer_size); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ 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]' 49 | VisitNativeRoots( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 50 | visitor, Runtime::Current()->GetClassLinker()->GetImagePointerSize()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 52 | as_klass->VisitReferences(klass, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 53 | visitor); | ~~~~~~~~ art/runtime/mirror/class.cc:1195:45: required from here 1195 | h_new_class_obj->Object::VisitReferences(ReadBarrierOnNativeRootsVisitor(), VoidFunctor()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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::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 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::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::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/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: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::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 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::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: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: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::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, 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++/14.2.0/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++/14.2.0/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++/14.2.0/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::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 { | ^~~~~~~~ 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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/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.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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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::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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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]' 82 | super_class->NumReferenceInstanceFields(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/object.cc:122:25: required from here 122 | src->VisitReferences(visitor, visitor); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ 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-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 '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::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 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 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 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/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); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/oat_file_assistant.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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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_), | ^~~~~~~~~~~~~~~~~~~~~~~ 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: art/runtime/thread.h:1707: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-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/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/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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 { | ^~~~~~~~~~~~ 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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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::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:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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::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: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 '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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/class.cc:1272:13: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 1272 | static bool IsMethodPreferredOver(ArtMethod* orig_method, | ^~~~~~~~~~~~~~~~~~~~~ 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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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 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/oat_file_manager.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 '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/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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/oat_quick_method_header.cc 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 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 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); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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::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-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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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::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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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)': 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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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::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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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::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:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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 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 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ art/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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 /usr/include/c++/14.2.0/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/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/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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 '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]' 913 | klass->GetReferenceInstanceOffsets(), visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 41 | VisitInstanceFieldsReferences(klass, visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ art/runtime/mirror/object.cc:122:25: required from here 122 | src->VisitReferences(visitor, visitor); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ 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/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 unless also declared 'inline' [-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::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/monitor_objects_stack_visitor.cc:19: art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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]' 41 | ClassTable* const class_table = GetClassTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 68 | class_loader->VisitReferences(klass, visitor); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ art/runtime/mirror/object.cc:122:25: required from here 122 | src->VisitReferences(visitor, visitor); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ 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/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 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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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::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/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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::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-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 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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/offsets.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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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::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/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/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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::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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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) \ | ^ 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_)); | ^~~~~~~~~~~~~~~ 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 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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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:87:53: required from 'int32_t art::mirror::String::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]' 87 | return GetLengthFromCount(GetCount()); | ~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/string-inl.h:46:28: required from here 46 | int32_t count = GetLength(); | ~~~~~~~~~^~ 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/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::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 '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::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/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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++/14.2.0/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/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 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::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 '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::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::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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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 '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/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 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_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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, 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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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 '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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::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/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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 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]' 888 | kIsStatic ? klass->NumReferenceStaticFields() : klass->NumReferenceInstanceFields(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 912 | VisitFieldsReferences( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 913 | klass->GetReferenceInstanceOffsets(), visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 41 | VisitInstanceFieldsReferences(klass, visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ art/runtime/mirror/object.cc:122:25: required from here 122 | src->VisitReferences(visitor, visitor); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ 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 instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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: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/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::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::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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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::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]' 73 | ObjPtr ext(GetExtData()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 49 | VisitNativeRoots( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 50 | visitor, Runtime::Current()->GetClassLinker()->GetImagePointerSize()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 52 | as_klass->VisitReferences(klass, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 53 | visitor); | ~~~~~~~~ art/runtime/mirror/object.cc:122:25: required from here 122 | src->VisitReferences(visitor, visitor); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ 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/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/parsed_options.cc 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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; | ^~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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]' 87 | return GetLengthFromCount(GetCount()); | ~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/string-inl.h:46:28: required from here 46 | int32_t count = GetLength(); | ~~~~~~~~~^~ 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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_)); | ^~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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/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_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]' 50 | ObjPtr arr(GetObsoleteMethods()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 75 | ext->VisitNativeRoots(visitor, pointer_size); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ 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]' 49 | VisitNativeRoots( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 50 | visitor, Runtime::Current()->GetClassLinker()->GetImagePointerSize()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 52 | as_klass->VisitReferences(klass, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 53 | visitor); | ~~~~~~~~ art/runtime/mirror/object.cc:122:25: required from here 122 | src->VisitReferences(visitor, visitor); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ 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/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/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) \ | ^ 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/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_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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/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]' 465 | access_to->GetClassLoader()); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:526:40: required from here 526 | return ResolvedFieldAccessTest(access_to, field, dex_cache, field_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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-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::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/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::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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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/gc_root.h:22, from art/runtime/class_linker.h:34: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/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 | ^~~~~~~ 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/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map: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.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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 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/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\ | ^ 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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.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::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 '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 '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-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::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:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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/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.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(); | ^~~~~~~~~ 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: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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/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\ | ^ 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/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/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/gc_root.h:22, from art/runtime/class_linker.h:34: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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: 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/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\ | ^ art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' In file included from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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; | ^~~~~ 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\ | ^ 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++/14.2.0/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++/14.2.0/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/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-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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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: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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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'? 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_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::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 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/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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] 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/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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/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 '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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map: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/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 '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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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 instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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 '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] 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 { | ^~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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.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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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 unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | 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:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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 unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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++/14.2.0/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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/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/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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.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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 '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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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::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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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_; | ^ 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-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\ | ^ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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 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::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/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/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 '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::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::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::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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_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::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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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 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/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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::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/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 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::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::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::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 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 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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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/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::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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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-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::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-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 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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_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::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/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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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::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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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::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/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 '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/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::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::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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/deque:62, from /usr/include/c++/14.2.0/stack:62, from art/runtime/handle_scope.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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: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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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/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: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_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::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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/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" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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::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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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::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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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: 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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: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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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::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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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-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/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/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/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/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? 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-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::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 '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::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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::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 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 '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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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: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); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/plugin.cc 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 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/deque: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::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 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_); | ^~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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/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++/14.2.0/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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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 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); | ^~~~~~~~~~~~~~~ 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/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++/14.2.0/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++/14.2.0/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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/object.h:25, from art/runtime/mirror/array.h:24, from art/runtime/native/sun_misc_Unsafe.cc:31: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/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 { | ^~~~~~~~ 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++/14.2.0/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-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_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/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/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86, 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::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/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/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]' 465 | access_to->GetClassLoader()); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:526:40: required from here 526 | return ResolvedFieldAccessTest(access_to, field, dex_cache, field_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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/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::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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 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/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: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_), | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62: /usr/include/c++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/parsed_options.cc:25:9: warning: "_GNU_SOURCE" redefined 25 | #define _GNU_SOURCE | ^~~~~~~~~~~ : note: this is the location of the previous definition 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::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::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::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/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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::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::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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(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)': 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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/quick_exception_handler.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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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]' 465 | access_to->GetClassLoader()); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:526:40: required from here 526 | return ResolvedFieldAccessTest(access_to, field, dex_cache, field_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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_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/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/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++/14.2.0/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.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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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::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]' 465 | access_to->GetClassLoader()); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:526:40: required from here 526 | return ResolvedFieldAccessTest(access_to, field, dex_cache, field_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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/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/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 '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 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: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62, from art/runtime/non_debuggable_classes.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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::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/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 '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] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86: 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/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/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/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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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/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 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/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/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/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 '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/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/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/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++/14.2.0/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++/14.2.0/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 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-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, 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++/14.2.0/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++/14.2.0/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++/14.2.0/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-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/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? host C++: libart <= art/runtime/read_barrier.cc 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 { | ^~~~~~ 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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 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++/14.2.0/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++/14.2.0/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++/14.2.0/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-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::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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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/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++/14.2.0/bits/stl_construct.h:61, from /usr/include/c++/14.2.0/bits/stl_tempbuf.h:61, from /usr/include/c++/14.2.0/memory:66, from art/runtime/oat_file_assistant.h:21: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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_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\ | ^ 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::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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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::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 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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::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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/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/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: 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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++/14.2.0/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 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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\ | ^ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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: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/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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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; | ^~~~~~ 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/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::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 instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/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/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-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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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++/14.2.0/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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_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++/14.2.0/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++/14.2.0/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++/14.2.0/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/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/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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/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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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_reference.h:21, from art/runtime/handle.h:28, from art/runtime/object_lock.h:22: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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++/14.2.0/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++/14.2.0/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++/14.2.0/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(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(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/locks.h:25, from art/runtime/handle_scope.h:25, from art/runtime/class_loader_context.h:26: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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) \ | ^ art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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) \ | ^ In file included from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86, 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); | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67: 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 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); | ^~~~~~~~~~~~~~~ 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: 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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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-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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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/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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62: /usr/include/c++/14.2.0/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++/14.2.0/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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.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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/ext/concurrence.h:34, from /usr/include/c++/14.2.0/bits/shared_ptr_base.h:62, from /usr/include/c++/14.2.0/bits/shared_ptr.h:53, from /usr/include/c++/14.2.0/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/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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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::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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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::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: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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-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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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.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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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::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 file included from art/runtime/mirror/object.h:25, from art/runtime/oat_file.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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 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 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 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 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/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::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++/14.2.0/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++/14.2.0/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++/14.2.0/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::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::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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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++/14.2.0/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_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 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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::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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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::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, 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/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/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: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/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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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::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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from art/libartbase/arch/instruction_set.h:21: /usr/include/c++/14.2.0/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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: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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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/gc_root.h:22, from art/runtime/art_field.h:23, from art/runtime/art_field-inl.h:20: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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-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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 '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 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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::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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 { | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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::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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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]' 465 | access_to->GetClassLoader()); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:526:40: required from here 526 | return ResolvedFieldAccessTest(access_to, field, dex_cache, field_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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: 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::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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-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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 '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 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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-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::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]' 465 | access_to->GetClassLoader()); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:526:40: required from here 526 | return ResolvedFieldAccessTest(access_to, field, dex_cache, field_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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.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 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.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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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_field-inl.h:405:45: required from here 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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++/14.2.0/bits/stl_construct.h:61, from /usr/include/c++/14.2.0/bits/stl_tempbuf.h:61, from /usr/include/c++/14.2.0/memory:66, from art/runtime/oat_file_manager.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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/reference_table.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::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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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::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; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 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 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]' 87 | return GetLengthFromCount(GetCount()); | ~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/string-inl.h:46:28: required from here 46 | int32_t count = GetLength(); | ~~~~~~~~~^~ 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/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/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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/reflection.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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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::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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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: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::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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: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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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 '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] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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::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 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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++/14.2.0/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/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::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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-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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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 '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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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::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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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: 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]' 87 | return GetLengthFromCount(GetCount()); | ~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/string-inl.h:46:28: required from here 46 | int32_t count = GetLength(); | ~~~~~~~~~^~ 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::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]' 465 | access_to->GetClassLoader()); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:526:40: required from here 526 | return ResolvedFieldAccessTest(access_to, field, dex_cache, field_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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::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/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: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/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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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::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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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); | ^~~~~~~~ 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 { | ^~~~~~~~~~~~ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67: 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/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) \ | ^ 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) \ | ^ host C++: libart <= art/runtime/runtime.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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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++/14.2.0/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++/14.2.0/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_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; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/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 not defined here [-Wc++20-extensions] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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.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 not defined here [-Wc++20-extensions] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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.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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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::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/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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/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::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::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::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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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_; | ^ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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_)); | ^~~~~~~~~~~~~~~ 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++/14.2.0/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/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++/14.2.0/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++/14.2.0/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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.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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/runtime_callbacks.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 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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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) \ | ^ host C++: libart <= art/runtime/runtime_common.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::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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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\ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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_method-inl.h:296:45: required from here 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/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/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 83 | dex_file_(GetDexFileFromDexCache(klass->GetDexCache())), | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/locks.h:25, from art/runtime/gc_root.h:20, from art/runtime/art_method.h:38: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' In file included from art/runtime/gc_root.h:22: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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, 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 not defined here [-Wc++20-extensions] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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 not defined here [-Wc++20-extensions] libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 '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] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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/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++/14.2.0/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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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; | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/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/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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) \ | ^ 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/list:62, from art/runtime/oat_file.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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, 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/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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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_intrinsics.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/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/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/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/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::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::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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: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*, 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/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/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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]' 89 | ret->SetType(type.Get()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ art/runtime/native/java_lang_invoke_MethodHandleImpl.cc:50:82: required from here 50 | h_object.Assign(mirror::Field::CreateFromArtField( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 51 | soa.Self(), field, /* force_resolve= */ false)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 90 | ret->SetDeclaringClass(field->GetDeclaringClass()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/native/java_lang_invoke_MethodHandleImpl.cc:50:82: required from here 50 | h_object.Assign(mirror::Field::CreateFromArtField( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 51 | soa.Self(), field, /* force_resolve= */ false)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 91 | ret->SetAccessFlags(field->GetAccessFlags()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/native/java_lang_invoke_MethodHandleImpl.cc:50:82: required from here 50 | h_object.Assign(mirror::Field::CreateFromArtField( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 51 | soa.Self(), field, /* force_resolve= */ false)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 92 | ret->SetDexFieldIndex(dex_field_index); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ art/runtime/native/java_lang_invoke_MethodHandleImpl.cc:50:82: required from here 50 | h_object.Assign(mirror::Field::CreateFromArtField( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 51 | soa.Self(), field, /* force_resolve= */ false)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 93 | ret->SetOffset(field->GetOffset().Int32Value()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/native/java_lang_invoke_MethodHandleImpl.cc:50:82: required from here 50 | h_object.Assign(mirror::Field::CreateFromArtField( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 51 | soa.Self(), field, /* force_resolve= */ false)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ art/runtime/runtime.cc:41:9: warning: "_GNU_SOURCE" redefined 41 | #define _GNU_SOURCE | ^~~~~~~~~~~ : note: this is the location of the previous definition 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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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.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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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::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/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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::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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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::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:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 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/stack_reference.h:21, from art/runtime/quick_exception_handler.h:25: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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-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\ | ^ 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]' 87 | return GetLengthFromCount(GetCount()); | ~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/string-inl.h:46:28: required from here 46 | int32_t count = GetLength(); | ~~~~~~~~~^~ 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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_root.h:22, from art/runtime/read_barrier.h:25: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ 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/mirror/object_reference.h:167:34: note: remove the '< >' /usr/include/c++/14.2.0/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/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) \ | ^ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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); | ^~~~~~~~ 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/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: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::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: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/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/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\ | ^ In file included from /usr/include/c++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/ext/concurrence.h:34, from /usr/include/c++/14.2.0/bits/shared_ptr_base.h:62, from /usr/include/c++/14.2.0/bits/shared_ptr.h:53, from /usr/include/c++/14.2.0/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/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]' 87 | return GetLengthFromCount(GetCount()); | ~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/string-inl.h:46:28: required from here 46 | int32_t count = GetLength(); | ~~~~~~~~~^~ 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 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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/functional:63, from libbase/include/android-base/logging.h:60, from art/runtime/quick_exception_handler.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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/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/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/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]' 89 | ret->SetType(type.Get()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ art/runtime/native/java_lang_Class.cc:286:65: required from here 286 | mirror::Field::CreateFromArtField(self, &field, force_resolve); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 90 | ret->SetDeclaringClass(field->GetDeclaringClass()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/native/java_lang_Class.cc:286:65: required from here 286 | mirror::Field::CreateFromArtField(self, &field, force_resolve); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 91 | ret->SetAccessFlags(field->GetAccessFlags()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/native/java_lang_Class.cc:286:65: required from here 286 | mirror::Field::CreateFromArtField(self, &field, force_resolve); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 92 | ret->SetDexFieldIndex(dex_field_index); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ art/runtime/native/java_lang_Class.cc:286:65: required from here 286 | mirror::Field::CreateFromArtField(self, &field, force_resolve); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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/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]' 93 | ret->SetOffset(field->GetOffset().Int32Value()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/native/java_lang_Class.cc:286:65: required from here 286 | mirror::Field::CreateFromArtField(self, &field, force_resolve); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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_)); | ^~~~~~~~~~~~~~~ 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/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 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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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\ | ^ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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) \ | ^ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/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++/14.2.0/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++/14.2.0/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/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/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ /usr/include/c++/14.2.0/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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 { | ^~~~~~~~ host C++: libart <= art/runtime/runtime_options.cc /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/monitor.cc:347:6: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 347 | void Monitor::AtraceMonitorUnlock() { | ^~~~~~~ art/runtime/monitor.cc:285:6: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 285 | void Monitor::AtraceMonitorLock(Thread* self, ObjPtr obj, bool is_wait) { | ^~~~~~~ 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++/14.2.0/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++/14.2.0/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/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-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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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/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 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/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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 { | ^~~~~~~~~~~~ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from art/runtime/parsed_options.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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: 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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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::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/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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.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:1617:18: warning: ignoring 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.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:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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++: libart <= art/runtime/scoped_thread_state_change.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 | ^~~~~~~ host C++: libart <= art/runtime/signal_catcher.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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, 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" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 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.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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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/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/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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++/14.2.0/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++/14.2.0/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/stack.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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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; | ^~~~~~ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67: 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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/stack_map.cc 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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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::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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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::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/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::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/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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.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/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) \ | ^ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/thread.cc 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 '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] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/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) \ | ^ 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: 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++/14.2.0/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++/14.2.0/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++/14.2.0/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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_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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/native/java_lang_Class.cc:135:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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-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/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: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::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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/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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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::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::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::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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; | ^~~~~~~~~ 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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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::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 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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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::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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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/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/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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_), | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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/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) \ | ^ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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::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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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/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/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 | } | ^ art/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 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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/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::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: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/hidden_api.h:83:60: required from here 83 | dex_file_(GetDexFileFromDexCache(klass->GetDexCache())), | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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) \ | ^ art/runtime/thread.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.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-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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' host C++: libart <= art/runtime/thread_list.cc 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) \ | ^ 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:39: art/runtime/managed_stack.h:167:23: warning: 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_root.h:22, from art/runtime/reference_table.h:27: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/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] 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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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::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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/thread_pool.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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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\ | ^ 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/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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(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); | ^~~~~~~~ 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::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' host C++: libart <= art/runtime/ti/agent.cc 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::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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 '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/stack_reference.h:21, from art/runtime/handle.h:28, from art/runtime/runtime_callbacks.h:25: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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 '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, 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\ | ^ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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 '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/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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(); | ^~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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\ | ^ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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/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 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/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/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 '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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 '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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/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/trace.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libart <= art/runtime/transaction.cc 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++/14.2.0/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++/14.2.0/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/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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/list:79: 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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/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/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/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/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) \ | ^ 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: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62, from art/runtime/runtime_callbacks.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 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:31, from art/runtime/runtime_common.cc:33: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/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/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/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/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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/ti/agent.cc:21: art/sigchainlib/../../bionic_translation/linker/dlfcn.h:3:9: 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:9: note: this is the location of the previous definition 10 | #define RTLD_LAZY 1 | ^~~~~~~~~ art/sigchainlib/../../bionic_translation/linker/dlfcn.h:4:9: warning: "RTLD_NOW" redefined 4 | #define RTLD_NOW 0x00002 /* Immediate function call binding. */ | ^~~~~~~~ /usr/include/dlfcn.h:11:9: note: this is the location of the previous definition 11 | #define RTLD_NOW 2 | ^~~~~~~~ art/sigchainlib/../../bionic_translation/linker/dlfcn.h:6:9: warning: "RTLD_NOLOAD" redefined 6 | #define RTLD_NOLOAD 0x00004 /* Do not load the object. */ | ^~~~~~~~~~~ /usr/include/dlfcn.h:12:9: note: this is the location of the previous definition 12 | #define RTLD_NOLOAD 4 | ^~~~~~~~~~~ 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/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/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/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/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::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.h:39: art/runtime/managed_stack.h:167:23: warning: 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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::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::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::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/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 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/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::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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/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/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/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/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-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\ | ^ 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/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::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/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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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/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 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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86, 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/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) \ | ^ 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++/14.2.0/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++/14.2.0/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: 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/gc_root.h:22, from art/runtime/runtime.h:38, from art/runtime/runtime_common.cc:35: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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::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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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: 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/functional:63, from libbase/include/android-base/logging.h:60, from art/runtime/art_method.h:23: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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 '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] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/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\ | ^ 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/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) \ | ^ In file included from art/runtime/base/locks.h:25, from art/runtime/gc_root.h:20, from art/runtime/art_method.h:38: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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_root.h:22: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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::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/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 '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/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc_root.h:22, from art/runtime/runtime.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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++/14.2.0/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++/14.2.0/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++/14.2.0/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: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 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/var_handles.cc 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\ | ^ 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::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::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/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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) | ^~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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/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\ | ^ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/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" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map: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::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/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::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 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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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, 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 '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::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 { | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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.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 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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 '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] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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/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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart <= art/runtime/vdex_file.cc 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/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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: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::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/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; | ^~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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 instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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 { | ^~~~~~~~~~~~ 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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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::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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/verifier/class_verifier.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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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::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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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++/14.2.0/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++/14.2.0/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_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 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 instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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::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/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/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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/verifier/instruction_flags.cc In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86: 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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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_); | ^~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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 '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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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(); | ^~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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/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.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 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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-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::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::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 '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::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 '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::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::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/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: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_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 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, 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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from art/libartbase/arch/instruction_set.h:21: /usr/include/c++/14.2.0/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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86, 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-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 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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 '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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/stl_tree.h:63, from /usr/include/c++/14.2.0/set:62, from art/runtime/runtime.h:24: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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) \ | ^ 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62: /usr/include/c++/14.2.0/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++/14.2.0/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 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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 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/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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from art/runtime/reference_table.h:22: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/libartbase/base/allocator.h:22, from art/runtime/gc/space/large_object_space.h:20: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 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 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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::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::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/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 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/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) \ | ^ 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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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::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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/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++/14.2.0/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/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++/14.2.0/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from art/runtime/stack.h:21: /usr/include/c++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67, from /usr/include/c++/14.2.0/bits/locale_classes.h:40, from /usr/include/c++/14.2.0/bits/ios_base.h:41, from /usr/include/c++/14.2.0/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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::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; | ^~~~~~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/set:79: 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 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 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/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++/14.2.0/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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.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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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/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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] 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-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::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-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 '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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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.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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 { | ^~~~~~~~~~~~ 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/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/mutex.h:31, from art/runtime/jni/java_vm_ext.h:23: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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: At global scope: art/runtime/thread.h:1574:27: warning: 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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from art/runtime/base/mutex.h:26: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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 '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 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' In file included from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/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\ | ^ /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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: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:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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: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::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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_; | ^~~~~~~~~~~~~~~~~~~~~~~ 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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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/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-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]' 465 | access_to->GetClassLoader()); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:526:40: required from here 526 | return ResolvedFieldAccessTest(access_to, field, dex_cache, field_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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/gc_root.h:22, from art/runtime/class_linker.h:34: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/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/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; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/verifier/method_verifier.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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\ | ^ In file included 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/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' host C++: libart <= art/runtime/verifier/reg_type.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, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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: 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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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 '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] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67: 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::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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/verifier/reg_type_cache.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++/14.2.0/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/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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::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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/base/locks.h:25, from art/runtime/gc_root.h:20, from art/runtime/art_method.h:38: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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_root.h:22: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' host C++: libart <= art/runtime/verifier/register_line.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); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/verifier/verifier_deps.cc 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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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: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_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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 '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/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 '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] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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::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/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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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++/14.2.0/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++/14.2.0/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++/14.2.0/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; | ^~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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/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/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) \ | ^ In file included from art/runtime/handle.h:27: art/runtime/obj_ptr.h: At global scope: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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_), | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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: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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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 '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] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bitset:49, from art/runtime/thread.h:21: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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/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/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) \ | ^ 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/gc_root.h:22, from art/runtime/runtime.h:38, from art/runtime/thread_pool.cc:34: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/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/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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from art/runtime/runtime_options.h:22: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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, 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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 '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/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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/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) \ | ^ 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_root.h:22, from art/runtime/instrumentation.h:30, from art/runtime/trace.h:34: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_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 '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: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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) \ | ^ In file included from art/runtime/gc_root.h:22, from art/runtime/transaction.h:26: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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::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 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/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 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::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::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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: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 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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: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/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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::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 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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::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::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: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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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: At global scope: art/runtime/thread.h:1574:27: warning: 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: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ 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; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67: 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::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 '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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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_); | ^~~~~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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::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 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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-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::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 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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-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-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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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.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); | ^~~~~~~~ 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::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/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 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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::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: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/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\ | ^ 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_; | ^ art/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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-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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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.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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/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\ | ^ 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:39: art/runtime/managed_stack.h:167:23: warning: 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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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::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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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::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/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]' 465 | access_to->GetClassLoader()); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:526:40: required from here 526 | return ResolvedFieldAccessTest(access_to, field, dex_cache, field_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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-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 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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]' 87 | return GetLengthFromCount(GetCount()); | ~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/string-inl.h:46:28: required from here 46 | int32_t count = GetLength(); | ~~~~~~~~~^~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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::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/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 { | ^~~~~~~~ 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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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.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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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 '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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bitset:49, from art/runtime/trace.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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::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-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\ | ^ 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) \ | ^ art/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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/native/java_lang_reflect_Field.cc:318:3: note: here 318 | case Primitive::kPrimVoid: | ^~~~ host C++: libart <= art/runtime/verify_object.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::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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:39: art/runtime/managed_stack.h:167:23: warning: 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::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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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/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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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++/14.2.0/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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++/14.2.0/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++/14.2.0/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::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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++/14.2.0/bits/stl_construct.h:61, from /usr/include/c++/14.2.0/bits/stl_tempbuf.h:61, from /usr/include/c++/14.2.0/memory:66, from art/runtime/barrier.h:30: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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: 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: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::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::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::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 '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::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 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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::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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/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 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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_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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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::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_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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_reference.h:21, from art/runtime/handle.h:28: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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.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::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/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67, from /usr/include/c++/14.2.0/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.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/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.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_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 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::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++/14.2.0/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++/14.2.0/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++/14.2.0/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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 '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::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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 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: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] 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/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/ext/concurrence.h:34, from /usr/include/c++/14.2.0/bits/shared_ptr_base.h:62, from /usr/include/c++/14.2.0/bits/shared_ptr.h:53, from /usr/include/c++/14.2.0/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/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_); | ^~~~~~~~~~~~~~~ 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::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/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/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 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from art/runtime/vdex_file.h:21: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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::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:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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::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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/well_known_classes.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_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map:58, from /usr/include/c++/14.2.0/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/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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::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/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 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.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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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::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_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 '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::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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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]' 465 | access_to->GetClassLoader()); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:526:40: required from here 526 | return ResolvedFieldAccessTest(access_to, field, dex_cache, field_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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-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/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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; | ^~~~~~ host C++: libart <= art/runtime/arch/context.cc 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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; | ^~~~~~ host C++: libart <= art/runtime/arch/instruction_set_features.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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 { | ^~~~~~~~ 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 /usr/include/c++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41: /usr/include/c++/14.2.0/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::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_); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/memcmp16.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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) \ | ^ 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/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 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::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/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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/deque:80, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/common_throws.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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); | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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::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/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/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.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++/14.2.0/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/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++/14.2.0/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++/14.2.0/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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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; | ^~~~~~ host C++: libart <= art/runtime/arch/arm/instruction_set_features_arm.cc 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/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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/stack_reference.h:21, from art/runtime/handle.h:28, from art/runtime/verifier/class_verifier.h:26: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/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/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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++/14.2.0/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/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 { | ^~~~~~~~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from art/runtime/verifier/class_verifier.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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/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\ | ^ 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/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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: 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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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++/14.2.0/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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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\ | ^ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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::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* 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/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, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h: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) | ^~~~~~~~~~~~~~~~~~~ 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 '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/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/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/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/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/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 '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/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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; | ^~~~~~~~~ In file included from art/runtime/base/locks.h:25, from art/runtime/class_linker.h:29, from art/runtime/vdex_file.cc:31: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/thread.h:1617:18: warning: 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_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:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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); | ^~~~~~~~ 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 { | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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++: libart <= art/runtime/arch/arm64/instruction_set_features_arm64.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ In file included from art/runtime/gc_root.h:22, from art/runtime/class_linker.h:34: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libart <= art/runtime/arch/arm64/registers_arm64.cc 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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/ext/concurrence.h:34, from /usr/include/c++/14.2.0/bits/shared_ptr_base.h:62, from /usr/include/c++/14.2.0/bits/shared_ptr.h:53, from /usr/include/c++/14.2.0/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67: 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.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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ host C++: libart <= art/runtime/arch/mips/instruction_set_features_mips.cc 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); | ^~~~~~~ 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) \ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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.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/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 { | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/stl_tree.h:63, from /usr/include/c++/14.2.0/set:62, from art/runtime/verifier/reg_type.h:22: /usr/include/c++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67: 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/base/locks.h:25: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart <= art/runtime/arch/mips/registers_mips.cc In file included from art/runtime/gc_root.h:22, from art/runtime/verifier/reg_type.h:31: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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++/14.2.0/bits/stl_construct.h:61, from /usr/include/c++/14.2.0/bits/stl_tempbuf.h:61, from /usr/include/c++/14.2.0/memory:66, from art/runtime/verifier/method_verifier.h:20: /usr/include/c++/14.2.0/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/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++/14.2.0/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++/14.2.0/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/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) \ | ^ 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/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++/14.2.0/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.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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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::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/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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: At global scope: art/runtime/thread.h:1574:27: warning: 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/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 '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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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/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 { | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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++/14.2.0/bits/stl_construct.h:61, from /usr/include/c++/14.2.0/bits/stl_tempbuf.h:61, from /usr/include/c++/14.2.0/memory:66, from art/runtime/verifier/register_line.h:22: /usr/include/c++/14.2.0/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/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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' host C++: libart <= art/runtime/arch/mips64/instruction_set_features_mips64.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/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++/14.2.0/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 '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] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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-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/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/list:62, from art/runtime/class_linker.h:20: /usr/include/c++/14.2.0/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/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++/14.2.0/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++/14.2.0/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 '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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: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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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 '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_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/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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from art/runtime/base/mutex.h:26: /usr/include/c++/14.2.0/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++/14.2.0/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_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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:39: art/runtime/managed_stack.h:167:23: warning: 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: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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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.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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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/stack_reference.h:21, from art/runtime/handle.h:28, from art/runtime/verifier/verifier_deps.h:28: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/arch/mips64/registers_mips64.cc In file included from art/runtime/gc_root.h:22, from art/runtime/class_linker.h:34: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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-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/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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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::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/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++/14.2.0/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/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++/14.2.0/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++/14.2.0/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/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 '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::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_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::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: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/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 '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 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/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) \ | ^ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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/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/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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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++/14.2.0/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++/14.2.0/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/base/locks.h:25, from art/runtime/handle.h:23, from art/runtime/verifier/method_verifier.h:33: art/libartbase/base/atomic.h: At global scope: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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.h:25, from art/runtime/mirror/object-inl.h:20: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_reference.h:21, from art/runtime/handle.h:28: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/list:79: 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 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/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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] art/runtime/stack_map.cc:36:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/stack_map.cc:36:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/stack_map.cc:36:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/stack_map.cc:36:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/stack_map.cc:36:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/stack_map.cc:36:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/stack_map.cc:36:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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 '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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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/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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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: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/arch/x86/instruction_set_features_x86.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); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/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/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_); | ^~~~~~~~~~~~~~~ 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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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: 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62, from art/runtime/base/locks.h:23: /usr/include/c++/14.2.0/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++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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.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: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/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::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: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-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_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::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/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h: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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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-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.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::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::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-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 '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); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/arch/x86/registers_x86.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/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/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++/14.2.0/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_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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/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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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::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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67, from /usr/include/c++/14.2.0/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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/arch/x86_64/registers_x86_64.cc 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++/14.2.0/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++/14.2.0/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/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/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 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::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: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: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::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::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/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::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) {} | ~~~~~~~~~^~~~~ 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::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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/set:79: 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 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/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/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/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::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_); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/stack_reference.h:21, from art/runtime/handle.h:28, from art/runtime/verifier/method_verifier.h:33: art/runtime/mirror/object_reference.h: At global scope: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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: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 '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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/entrypoints/entrypoint_utils.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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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-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::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: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::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/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++/14.2.0/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; | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 { | ^~~~~~~~~~~~ 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) \ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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: At global scope: art/runtime/thread.h:1574:27: warning: 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::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, 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 { | ^~~~~~ host C++: libart <= art/runtime/entrypoints/jni/jni_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/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::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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; | ^~~~~~~~ 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::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/stl_tree.h:63, from /usr/include/c++/14.2.0/map:62, from art/runtime/verifier/verifier_deps.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 83 | dex_file_(GetDexFileFromDexCache(klass->GetDexCache())), | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 117 | Domain domain = ComputeDomain(klass->GetClassLoader(), dex_file); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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; | ^~~~~ 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62, from art/runtime/base/locks.h:23: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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/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/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart <= art/runtime/entrypoints/math_entrypoints.cc art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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; | ^~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ In file included from /usr/include/c++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/ext/concurrence.h:34, from /usr/include/c++/14.2.0/bits/shared_ptr_base.h:62, from /usr/include/c++/14.2.0/bits/shared_ptr.h:53, from /usr/include/c++/14.2.0/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_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/gc_root.h:22, from art/runtime/class_linker.h:34: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' host C++: libart <= art/runtime/entrypoints/quick/quick_alloc_entrypoints.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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::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::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::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::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::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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/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++/14.2.0/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++/14.2.0/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_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 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-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::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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 '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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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/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) \ | ^ 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/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 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_; | ^ In file included from /usr/include/c++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/ext/concurrence.h:34, from /usr/include/c++/14.2.0/bits/shared_ptr_base.h:62, from /usr/include/c++/14.2.0/bits/shared_ptr.h:53, from /usr/include/c++/14.2.0/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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86: 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 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/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/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/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 '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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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_; | ^ host C++: libart <= art/runtime/entrypoints/quick/quick_cast_entrypoints.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/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::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: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); | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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::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/thread.h:1617:18: warning: ignoring 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.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:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 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 '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_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 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++/14.2.0/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/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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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/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/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/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/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'} [-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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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-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\ | ^ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/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) \ | ^ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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/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: 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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 '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] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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(); | ^~~~~~~~~ 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 '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] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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/entrypoints/quick/quick_deoptimization_entrypoints.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); | ^~~~~~~~ host C++: libart <= art/runtime/entrypoints/quick/quick_dexcache_entrypoints.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); | ^~~~~~~~ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67: 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-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/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/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++/14.2.0/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++/14.2.0/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::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::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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/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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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: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::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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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_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/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: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); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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::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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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.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-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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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) \ | ^ 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/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::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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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 '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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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/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 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::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 '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::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::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::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/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 { | ^~~~~~~~~~~~ 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: At global scope: art/runtime/thread.h:1574:27: warning: 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 '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::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 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 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 '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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/entrypoints/quick/quick_entrypoints_enum.cc art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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_), | ^~~~~~~~~~~~~~~~~~~~~~~ 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 '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/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/entrypoints/quick/quick_field_entrypoints.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 '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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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::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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 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/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: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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/map:81: 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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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::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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_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/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/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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 '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] cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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::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: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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::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/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++/14.2.0/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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/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-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::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/entrypoints/quick/quick_fillarray_entrypoints.cc 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 '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/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/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/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ 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 '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: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/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/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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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) \ | ^ 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: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_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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::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/entrypoints/quick/quick_jni_entrypoints.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_), | ^~~~~~~~~~~~~~~~~~~~~~~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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\ | ^ 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.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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libart <= art/runtime/entrypoints/quick/quick_lock_entrypoints.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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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: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); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 '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]' 465 | access_to->GetClassLoader()); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:526:40: required from here 526 | return ResolvedFieldAccessTest(access_to, field, dex_cache, field_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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; | ^~~~~~ host C++: libart <= art/runtime/entrypoints/quick/quick_math_entrypoints.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::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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 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/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 '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/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-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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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:87:53: required from 'int32_t art::mirror::String::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]' 87 | return GetLengthFromCount(GetCount()); | ~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/string-inl.h:46:28: required from here 46 | int32_t count = GetLength(); | ~~~~~~~~~^~ 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: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) \ | ^ 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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/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 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/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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/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/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/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 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: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.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 '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::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::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::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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/entrypoints/quick/quick_thread_entrypoints.cc art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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::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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_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/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 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 '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/entrypoints/quick/quick_throw_entrypoints.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, 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++/14.2.0/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++/14.2.0/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++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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: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 '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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/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/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]' 465 | access_to->GetClassLoader()); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:526:40: required from here 526 | return ResolvedFieldAccessTest(access_to, field, dex_cache, field_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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: 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++/14.2.0/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++/14.2.0/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++/14.2.0/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: art/runtime/thread.h:1707: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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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/entrypoints/quick/quick_trampoline_entrypoints.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ art/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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::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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/base/callee_save_type.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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/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) \ | ^ art/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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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: 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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_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\ | ^ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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/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) \ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ art/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 '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/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/base/locks.h_operator_out.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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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/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 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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: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) \ | ^ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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::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++/14.2.0/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++/14.2.0/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++/14.2.0/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/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/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::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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_), | ^~~~~~~~~~~~~~~~~~~~~~~ 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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] 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-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_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/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 '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] 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/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_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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-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::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 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++/14.2.0/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++/14.2.0/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++/14.2.0/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 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-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/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 <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/class_loader_context.h_operator_out.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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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::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/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/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/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 '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::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/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++/14.2.0/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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: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/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-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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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 <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/class_status.h_operator_out.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/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-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::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::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_), | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 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 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-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 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::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 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/debugger.h_operator_out.cc In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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\ | ^ 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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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::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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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/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.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_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: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::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 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::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/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/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++/14.2.0/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/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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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::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 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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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-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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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::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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 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/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/cmdline/cmdline_types.h:37: art/runtime/jdwp_provider.h:26:12: note: declared here 26 | enum class JdwpProvider { | ^~~~~~~~~~~~ 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/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 | ^~~~~~~~~~~~~~~~~~~ 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/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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/runtime_options.h: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/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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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/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/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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/runtime_options.h: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) | ^~~~~~~~~~~~~~~~~~~ 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/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, \ | ^~~~~~~~~~~~~~~~~~~ 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/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 instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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) \ | ^ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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/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++/14.2.0/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++/14.2.0/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::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::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/gc_root.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.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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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 '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/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 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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; | ^~~~~~ host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/gc/allocator_type.h_operator_out.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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/gc/allocator/rosalloc.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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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 '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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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, 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++/14.2.0/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: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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++/14.2.0/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(); | ^~~~~~~~~ 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 '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] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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/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:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 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/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::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/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::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/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_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) \ | ^ 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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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.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-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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.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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/functional:63, from libbase/include/android-base/logging.h:60, from art/runtime/entrypoints/jni/jni_entrypoints.cc:17: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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::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: 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++/14.2.0/bits/stl_iterator.h:64, from /usr/include/c++/14.2.0/bits/range_access.h:38, from /usr/include/c++/14.2.0/string_view:51, from art/runtime/mirror/class.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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/gc/collector_type.h_operator_out.cc In file included from art/runtime/stack_reference.h:21, from art/runtime/handle.h:28, from art/runtime/entrypoints/entrypoint_utils.h:29: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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: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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/gc/collector/gc_type.h_operator_out.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/base/mutex.h:31: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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::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/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 '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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/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/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/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 '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 '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::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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62, from art/runtime/base/locks.h:23: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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_)); | ^~~~~~~~~~~~~~~ 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: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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' In file included from art/runtime/mirror/object.h:25: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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 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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map:58, from /usr/include/c++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/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/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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/base/locks.h:25, from art/runtime/gc_root.h:20, from art/runtime/art_method.h:38: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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; | ^~~~~~ host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/gc/heap.h_operator_out.cc 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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/gc_root.h:22: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ 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/object_reference.h:167:34: note: remove the '< >' /usr/include/c++/14.2.0/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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::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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 '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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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 '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/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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/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/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/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++/14.2.0/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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++/14.2.0/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/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++/14.2.0/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++/14.2.0/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/gc/space/region_space.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/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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]' 465 | access_to->GetClassLoader()); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:526:40: required from here 526 | return ResolvedFieldAccessTest(access_to, field, dex_cache, field_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ In file included from art/runtime/stack_reference.h:21, from art/runtime/handle.h:28, from art/runtime/entrypoints/entrypoint_utils.h:29: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/hidden_api.h:83:60: required from here 83 | dex_file_(GetDexFileFromDexCache(klass->GetDexCache())), | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/hidden_api.h:117:56: required from here 117 | Domain domain = ComputeDomain(klass->GetClassLoader(), dex_file); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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/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: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 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/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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/14.2.0/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/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++/14.2.0/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::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/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; | ^~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62, from art/runtime/base/locks.h:23: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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::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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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); | ^~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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-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::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62, from art/runtime/base/locks.h:23: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/gc/space/space.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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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: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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/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) \ | ^ 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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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); | ^~~~~~~~ host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/gc/weak_root_state.h_operator_out.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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) \ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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\ | ^ In file included from art/runtime/gc_root.h:22: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/functional:63, from libbase/include/android-base/logging.h:60, from art/runtime/art_method.h:23: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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\ | ^ host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/image.h_operator_out.cc In file included from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86: 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ 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; | ^~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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: 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/functional:63, from libbase/include/android-base/logging.h:60, from art/runtime/art_method.h:23: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/functional:63, from art/libdexfile/dex/dex_file_types.h:22, from art/runtime/art_field.h:20: /usr/include/c++/14.2.0/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/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++/14.2.0/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++/14.2.0/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_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/base/locks.h:25, from art/runtime/gc_root.h:20, from art/runtime/art_method.h:38: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/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_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_root.h:22: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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_)); | ^~~~~~~~~~~~~~~ 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/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 /usr/include/c++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from /usr/include/c++/14.2.0/bits/locale_classes.h:40, from /usr/include/c++/14.2.0/bits/ios_base.h:41, from /usr/include/c++/14.2.0/ios:44, from /usr/include/c++/14.2.0/ostream:40, from /usr/include/c++/14.2.0/iostream:41, from out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/class_loader_context.h_operator_out.cc:1: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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_)); | ^~~~~~~~~~~~~~~ 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: At global scope: art/runtime/thread.h:1574:27: warning: 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 <= 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: 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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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/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 { | ^~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/indirect_reference_table.h_operator_out.cc art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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/base/locks.h:25, from art/runtime/gc_root.h:20, from art/runtime/art_method.h:38: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 '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] cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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/gc_root.h:22: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/jdwp_provider.h_operator_out.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, 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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:39: art/runtime/managed_stack.h:167:23: warning: 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 { | ^~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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) \ | ^ 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; | ^~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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_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: At global scope: art/runtime/thread.h:1574:27: warning: 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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86: 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:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 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; | ^~~~~~ 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/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/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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); | ^~~~~~~~ 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::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::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/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::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::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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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_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::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-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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::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++/14.2.0/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++/14.2.0/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++/14.2.0/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::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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/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 '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-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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_; | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/functional:63, from libbase/include/android-base/logging.h:60, from art/runtime/entrypoints/quick/quick_jni_entrypoints.cc:17: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/jdwp/jdwp.h_operator_out.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/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/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/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) \ | ^ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/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/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/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: 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/functional:63, from libbase/include/android-base/logging.h:60, from art/runtime/art_method.h:23: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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/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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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) | ^~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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) \ | ^ 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/gc_root.h:22: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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: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 <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/jdwp/jdwp_constants.h_operator_out.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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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.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/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 '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] 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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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:25, from art/runtime/handle_scope.h:25, from art/runtime/class_loader_context.h:26: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ In file included from art/runtime/base/locks.h:25, from art/runtime/gc_root.h:20, from art/runtime/art_method.h:38: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' In file included from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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_root.h:22: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/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/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/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/oat.h_operator_out.cc 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::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_), | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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::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:25, from art/runtime/gc_root.h:20, from art/runtime/art_method.h:38: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/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_), | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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::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_root.h:22: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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 '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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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 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: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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 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: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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/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 { | ^~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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++/14.2.0/bits/stl_construct.h:61, from /usr/include/c++/14.2.0/bits/stl_tempbuf.h:61, from /usr/include/c++/14.2.0/memory:66, from art/libartbase/base/logging.h:19: /usr/include/c++/14.2.0/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/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++/14.2.0/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++/14.2.0/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(); | ^~~~~~~~~ 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: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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/reflection.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/reflection.cc:477:6: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 477 | bool InvokeMethodImpl(const ScopedObjectAccessAlreadyRunnable& soa, | ^~~~~~~~~~~~~~~~ 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/reflection.cc:462:6: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 462 | bool CheckArgsForInvokeMethod(ArtMethod* np_method, | ^~~~~~~~~~~~~~~~~~~~~~~~ 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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/functional:63, from libbase/include/android-base/logging.h:60, from art/runtime/art_method.h:23: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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/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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] 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++/14.2.0/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_), | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 '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: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::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/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) \ | ^ 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/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 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]' 465 | access_to->GetClassLoader()); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:526:40: required from here 526 | return ResolvedFieldAccessTest(access_to, field, dex_cache, field_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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++/14.2.0/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/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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from /usr/include/c++/14.2.0/bits/locale_classes.h:40, from /usr/include/c++/14.2.0/bits/ios_base.h:41, from /usr/include/c++/14.2.0/ios:44, from /usr/include/c++/14.2.0/ostream:40, from /usr/include/c++/14.2.0/iostream:41, from out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/debugger.h_operator_out.cc:1: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_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); | ^~~~~~~~ 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: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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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::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-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::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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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/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" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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 '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-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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 '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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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/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 '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 '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/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? In file included from art/runtime/base/locks.h:25, from art/runtime/gc_root.h:20, from art/runtime/art_method.h:38: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ 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/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/gc_root.h:22: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/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_; | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc_root.h:22, from art/runtime/class_linker.h:34: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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 <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/object_callbacks.h_operator_out.cc 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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) \ | ^ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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) \ | ^ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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) | ^~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++/14.2.0/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++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/process_state.h_operator_out.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/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::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::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::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::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::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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 /usr/include/c++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/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/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++/14.2.0/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/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 '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/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/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? 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/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 '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/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); | ^~~~~~~~ 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/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); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/stack.h_operator_out.cc 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 { | ^~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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/suspend_reason.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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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; | ^~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 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 '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/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/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) \ | ^ 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/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 '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/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::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/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: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/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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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 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::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 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 '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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ 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/atomic.h:41:22: note: remove the '< >' 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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::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:39: art/runtime/managed_stack.h:167:23: warning: 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 instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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 { | ^~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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_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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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 '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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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(); | ^~~~~~~~~ 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& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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/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/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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/thread.h_operator_out.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_; | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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 { | ^~~~~~~~~~~~ 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/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/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++/14.2.0/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 art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67, 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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/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) {} | ~~~~~~~~~^~~~~ 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; | ^~~~~ 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/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 { | ^~~~~~ 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/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/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::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/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/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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 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::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::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::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::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::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_)); | ^~~~~~~~~~~~~~~ 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) | ~~~~~~~~~^~~~~ 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: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::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/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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/ext/concurrence.h:34, from /usr/include/c++/14.2.0/bits/shared_ptr_base.h:62, from /usr/include/c++/14.2.0/bits/shared_ptr.h:53, from /usr/include/c++/14.2.0/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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: At global scope: art/runtime/thread.h:1574:27: warning: 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/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.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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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 '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: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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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 '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 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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_)); | ^~~~~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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, 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 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/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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::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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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::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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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::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/object.h:25: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' In file included from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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++/14.2.0/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 '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/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/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 '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/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) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::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.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ 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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] 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++/14.2.0/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: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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/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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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/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/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) \ | ^ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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/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/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/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 '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-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/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/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/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 { | ^~~~~~~~ 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_)); | ^~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/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:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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/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_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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_; | ^ 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:39: art/runtime/managed_stack.h:167:23: warning: 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/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/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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::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/thread.h:1707: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; | ^~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~ 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 unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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/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++/14.2.0/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/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: At global scope: art/runtime/thread.h:1574:27: warning: 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/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: At global scope: art/runtime/thread.h:1574:27: warning: 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_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:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/thread_state.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 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/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 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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 '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/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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: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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/gc_root.h:22, from art/runtime/instrumentation.h:30: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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 <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/ti/agent.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, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/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++/14.2.0/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++/14.2.0/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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::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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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::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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 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 <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/trace.h_operator_out.cc In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/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++/14.2.0/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_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 <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/verifier/verifier_enums.h_operator_out.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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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_root.h:22, from art/runtime/indirect_reference_table.h:32: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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; | ^~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 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::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 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++/14.2.0/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: 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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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::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 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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); | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/ios:41, from /usr/include/c++/14.2.0/ostream:40, from /usr/include/c++/14.2.0/iostream:41, from out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/gc/space/region_space.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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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 asm: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/mterp_arm64.S cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ Copy: out/host/linux-x86/obj/STATIC_LIBRARIES/libart-dex2oat_intermediates/asm_defines.h In file included from /usr/include/c++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/ios:41, from /usr/include/c++/14.2.0/ostream:40, from /usr/include/c++/14.2.0/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 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/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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: 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: 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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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/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 | ^~~~~~~~~~~~~~~~~~~ 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 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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ Install: out/host/linux-x86/framework/dx.jar art/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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::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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ Install: out/host/linux-x86/lib64/libwolfssljni.so art/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 StaticLib: libopenjdkjvm (out/host/linux-x86/obj/STATIC_LIBRARIES/libopenjdkjvm_intermediates/libopenjdkjvm.a) 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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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.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, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ Install: out/host/linux-x86/bin/dalvikvm In file included from art/runtime/gc_root.h:22, from art/runtime/read_barrier.h:25: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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; | ^~~~~~ host SharedLib: libbase (out/host/linux-x86/obj/lib/libbase.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/art_field-inl.h:405:45: required from here 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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; | ^~~~~~ host C++: libart-compiler <= art/compiler/jni/quick/arm64/calling_convention_arm64.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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ host C++: libart-compiler <= art/compiler/optimizing/code_generator_arm64.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 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/lib/gcc/aarch64-alpine-linux-musl/14.2.0/../../../../aarch64-alpine-linux-musl/bin/ld: /usr/lib/gcc/aarch64-alpine-linux-musl/14.2.0/../../../../lib/libc.so: warning: The fgetln() function cannot be safely ported, use getline(3) instead, as it is supported by GNU and POSIX.1-2008. cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/verifier/class_verifier.cc:81:69: required from here 81 | Handle dex_cache(hs.NewHandle(klass->GetDexCache())); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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-compiler <= art/compiler/optimizing/code_generator_vector_arm64.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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::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]' 465 | access_to->GetClassLoader()); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:526:40: required from here 526 | return ResolvedFieldAccessTest(access_to, field, dex_cache, field_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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; | ^~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/ios:41, from /usr/include/c++/14.2.0/ostream:40, from /usr/include/c++/14.2.0/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/scheduler_arm64.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++/14.2.0/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++/14.2.0/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++/14.2.0/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/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 { | ^~~~~~ host C++: libart-compiler <= art/compiler/optimizing/instruction_simplifier_arm64.cc In file included from /usr/include/c++/14.2.0/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_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++/14.2.0/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/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)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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/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/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/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/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)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/intrinsics_arm64.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 = long 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]' 759 | return ThreadOffsetFromTlsPtr(OFFSETOF_MEMBER(tls_ptr_sized_values, card_table)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/tools/cpp-define-generator/thread.def:21:1: required from here 22 | art::Thread::CardTableOffset().Int32Value()) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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::k64]': art/tools/cpp-define-generator/thread.def:31:1: required from here 32 | art::Thread::ThreadFlagsOffset().Int32Value()) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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::k64]': art/tools/cpp-define-generator/thread.def:33:1: required from here 34 | art::Thread::ThinLockIdOffset().Int32Value()) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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::k64]': art/tools/cpp-define-generator/thread.def:35:1: required from here 36 | art::Thread::InterpreterCacheOffset().Int32Value()) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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::k64]': art/tools/cpp-define-generator/thread.def:39:1: required from here 40 | art::Thread::IsGcMarkingOffset().Int32Value()) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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::k64]': art/tools/cpp-define-generator/thread.def:59:1: required from here 60 | art::Thread::UseMterpOffset().Int32Value()) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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_) + | ^~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libart-compiler <= art/compiler/utils/arm64/assembler_arm64.cc 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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 { | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-compiler <= art/compiler/utils/arm64/jni_macro_assembler_arm64.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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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-compiler <= art/compiler/utils/arm64/managed_register_arm64.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-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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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::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_)); | ^~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-compiler <= art/compiler/jni/quick/arm/calling_convention_arm.cc 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); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/code_generator_arm_vixl.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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86: 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.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_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 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-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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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::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 <= art/compiler/optimizing/code_generator_vector_arm_vixl.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 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::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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++/14.2.0/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++/14.2.0/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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++/14.2.0/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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-compiler <= art/compiler/optimizing/instruction_simplifier_arm.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_arm64.h:21, from art/compiler/optimizing/code_generator_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) \ | ^ 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/compiler/optimizing/code_generator.h:20, from art/compiler/optimizing/code_generator_arm64.h:21, from art/compiler/optimizing/code_generator_vector_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) \ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/instruction_simplifier_shared.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 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/arm64/calling_convention_arm64.h:21, from art/compiler/jni/quick/arm64/calling_convention_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) \ | ^ 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/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) \ | ^ 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/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/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<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/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/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-compiler <= art/compiler/optimizing/intrinsics_arm_vixl.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::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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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_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) \ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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\ | ^ 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/handle_scope-inl.h:25, from art/compiler/jni/quick/arm64/calling_convention_arm64.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/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_arm64.h:20, from art/compiler/optimizing/intrinsics_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 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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/nodes_shared.cc 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++/14.2.0/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_arm64.h:20, from art/compiler/optimizing/scheduler_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 /usr/include/c++/14.2.0/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); | ^~~~~~~~~~~~~~~ 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/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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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: 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++/14.2.0/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++/14.2.0/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/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/compiler/utils/arm64/assembler_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) \ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++: libart-compiler <= art/compiler/optimizing/scheduler_arm.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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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_arm64.h:20, from art/compiler/optimizing/instruction_simplifier_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 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) \ | ^ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map: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/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) \ | ^ 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/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/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) \ | ^ 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/arena_allocator.h:28, from art/libartbase/base/arena_containers.h:27, from art/compiler/utils/arm64/assembler_arm64.h:26, from art/compiler/utils/arm64/jni_macro_assembler_arm64.h:26, from art/compiler/utils/arm64/jni_macro_assembler_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) \ | ^ 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/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; | ^~~~~ 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 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/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++/14.2.0/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++/14.2.0/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/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/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/compiler/utils/managed_register.h:23, from art/compiler/utils/arm64/managed_register_arm64.h:23, from art/compiler/utils/arm64/managed_register_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 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: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, 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_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) \ | ^ 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\ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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\ | ^ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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\ | ^ 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: 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map: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/compiler/jni/quick/arm/calling_convention_arm.cc:335:5: warning: multi-line comment [-Wcomment] 335 | // /\ | ^ 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/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::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/arena_allocator.h:28, from art/libartbase/base/arena_containers.h:27, from art/compiler/utils/arm64/assembler_arm64.h:26, from art/compiler/utils/arm64/assembler_arm64.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/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 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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-compiler <= art/compiler/utils/arm/assembler_arm_vixl.cc 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 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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\ | ^ 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/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::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/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 'unsigned int' [-Wsign-promo] 1808 | LOG(WARNING) << "Agent attach failed (result=" << error << ") : " << error_msg; | ^~~~~ 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/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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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) \ | ^ 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/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 (*)() 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/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 *); | ^~~~~~~~~~~~ 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/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/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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 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/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/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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: 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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) \ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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 /usr/include/c++/14.2.0/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); | ^~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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 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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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++/14.2.0/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++/14.2.0/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 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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_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/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::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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-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_arm64.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/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/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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::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::kWithReadBarrier]': art/runtime/hidden_api.h:83:60: required from here 83 | dex_file_(GetDexFileFromDexCache(klass->GetDexCache())), | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 117 | Domain domain = ComputeDomain(klass->GetClassLoader(), dex_file); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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.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/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) \ | ^ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 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/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/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.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/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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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.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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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.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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/monitor_objects_stack_visitor.h:82:14: note: shadowed declaration is here 82 | const bool dump_locks; | ^~~~~~~~~~ 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/compiler/utils/arm64/jni_macro_assembler_arm64.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 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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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 '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/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/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) \ | ^ 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/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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from /usr/include/c++/14.2.0/bits/locale_classes.h:40, from /usr/include/c++/14.2.0/bits/ios_base.h:41, from /usr/include/c++/14.2.0/ios:44, from /usr/include/c++/14.2.0/ostream:40, from /usr/include/c++/14.2.0/iostream:41, from out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/stack.h_operator_out.cc:1: /usr/include/c++/14.2.0/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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 '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] 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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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/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/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-compiler <= art/compiler/utils/arm/constants_arm.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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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_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 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 '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/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/utils/arm64/assembler_arm64.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\ | ^ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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/mirror/array-inl.h:26, from art/compiler/optimizing/code_generator_vector_arm64.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/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart-compiler <= art/compiler/utils/arm/jni_macro_assembler_arm_vixl.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::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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/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/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/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) \ | ^ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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\ | ^ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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_arm64.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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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: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/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/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:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/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.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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from /usr/include/c++/14.2.0/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/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/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 '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/mirror/array-inl.h:26, from art/compiler/optimizing/instruction_simplifier_arm64.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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, 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++/14.2.0/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: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::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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 '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::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/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\ | ^ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 '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_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::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-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::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::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 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::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 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::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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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: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 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-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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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::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/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/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 '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 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::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-compiler <= art/compiler/utils/arm/managed_register_arm.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.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::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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.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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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-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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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::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 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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::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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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-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/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 '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.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::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ art/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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\ | ^ 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/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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::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/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\ | ^ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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/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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::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/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++/14.2.0/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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 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 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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: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::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 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/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 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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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: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/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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.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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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/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++/14.2.0/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/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/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 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_method-inl.h:296:45: required from here 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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::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 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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/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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] 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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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_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 '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 83 | dex_file_(GetDexFileFromDexCache(klass->GetDexCache())), | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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-compiler <= art/compiler/compiled_method.cc 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/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) \ | ^ art/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 112 | ObjPtr dex_cache = klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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_root.h:22, from art/runtime/instrumentation.h:30, from art/runtime/trace.h:34: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ art/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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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.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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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: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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 '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/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/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) \ | ^ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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_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; | ^~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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::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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/debug/elf_debug_writer.cc 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/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 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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()); | ^~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 '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] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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-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_arm64.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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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/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\ | ^ art/runtime/var_handles.cc: In function 'bool art::VarHandleInvokeAccessor(Thread*, ShadowFrame&, Handle, Handle, mirror::VarHandle::AccessMode, const InstructionOperands*, JValue*)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::mirror::VarHandle::MatchKind' chooses 'unsigned char' over 'signed char' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/var_handles.cc:91:5: note: in expansion of macro 'DCHECK_EQ' 91 | DCHECK_EQ(match_kind, mirror::VarHandle::MatchKind::kNone); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream& std::operator<<(basic_ostream&, unsigned char) [with _Traits = char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/var_handles.cc:91:5: note: in expansion of macro 'DCHECK_EQ' 91 | DCHECK_EQ(match_kind, mirror::VarHandle::MatchKind::kNone); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::mirror::VarHandle::MatchKind' chooses 'unsigned char' over 'char' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/var_handles.cc:91:5: note: in expansion of macro 'DCHECK_EQ' 91 | DCHECK_EQ(match_kind, mirror::VarHandle::MatchKind::kNone); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream& std::operator<<(basic_ostream&, unsigned char) [with _Traits = char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/var_handles.cc:91:5: note: in expansion of macro 'DCHECK_EQ' 91 | DCHECK_EQ(match_kind, mirror::VarHandle::MatchKind::kNone); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::mirror::VarHandle::MatchKind' chooses 'unsigned char' over 'char' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/var_handles.cc:91:5: note: in expansion of macro 'DCHECK_EQ' 91 | DCHECK_EQ(match_kind, mirror::VarHandle::MatchKind::kNone); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream& std::operator<<(basic_ostream&, unsigned char) [with _Traits = char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/var_handles.cc:91:5: note: in expansion of macro 'DCHECK_EQ' 91 | DCHECK_EQ(match_kind, mirror::VarHandle::MatchKind::kNone); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::mirror::VarHandle::MatchKind' chooses 'unsigned char' over 'signed char' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/var_handles.cc:91:5: note: in expansion of macro 'DCHECK_EQ' 91 | DCHECK_EQ(match_kind, mirror::VarHandle::MatchKind::kNone); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream& std::operator<<(basic_ostream&, unsigned char) [with _Traits = char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/var_handles.cc:91:5: note: in expansion of macro 'DCHECK_EQ' 91 | DCHECK_EQ(match_kind, mirror::VarHandle::MatchKind::kNone); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::mirror::VarHandle::MatchKind' chooses 'unsigned char' over 'char' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/var_handles.cc:91:5: note: in expansion of macro 'DCHECK_EQ' 91 | DCHECK_EQ(match_kind, mirror::VarHandle::MatchKind::kNone); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream& std::operator<<(basic_ostream&, unsigned char) [with _Traits = char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/var_handles.cc:91:5: note: in expansion of macro 'DCHECK_EQ' 91 | DCHECK_EQ(match_kind, mirror::VarHandle::MatchKind::kNone); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::mirror::VarHandle::MatchKind' chooses 'unsigned char' over 'char' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/var_handles.cc:91:5: note: in expansion of macro 'DCHECK_EQ' 91 | DCHECK_EQ(match_kind, mirror::VarHandle::MatchKind::kNone); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream& std::operator<<(basic_ostream&, unsigned char) [with _Traits = char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/var_handles.cc:91:5: note: in expansion of macro 'DCHECK_EQ' 91 | DCHECK_EQ(match_kind, mirror::VarHandle::MatchKind::kNone); | ^~~~~~~~~ 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-compiler <= art/compiler/dex/inline_method_analyser.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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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 '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/libartbase/base/scoped_arena_containers.h: In instantiation of 'void art::ArenaDelete::ProtectMemory(T*, size_t) const [with T = art::verifier::RegisterLine; size_t = long unsigned int]': art/runtime/verifier/register_line-inl.h:233:18: required from here 233 | ProtectMemory(ptr, RegisterLine::ComputeSize(ptr->NumRegs())); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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 { | ^~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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::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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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: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::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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/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/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::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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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.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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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_), | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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: 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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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\ | ^ 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::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/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/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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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.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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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) \ | ^ 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) \ | ^ 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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: 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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_), | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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::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 '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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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::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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 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 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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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::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::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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::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::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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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::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 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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::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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 '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] 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) \ | ^ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_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:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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-compiler <= art/compiler/dex/verified_method.cc libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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-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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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/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/runtime/base/locks.h:25, from art/runtime/handle_scope.h:25, from art/compiler/jni/quick/calling_convention.h:24: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' In file included from art/runtime/base/locks.h:25, from art/runtime/handle_scope.h:25, from art/compiler/jni/quick/calling_convention.h:24: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 '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-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); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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/stack_reference.h:21, from art/runtime/handle_scope.h:27: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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/stack_reference.h:21, from art/runtime/handle_scope.h:27: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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/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 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 '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::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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 '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-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_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::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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in 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: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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_)); | ^~~~~~~~~~~~~~~ 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 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: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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_)); | ^~~~~~~~~~~~~~~ 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 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/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::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_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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-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/libelffile/elf/elf_utils.h:22, from art/libelffile/elf/elf_builder.h:30, 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 | ^~~~~~~ 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/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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/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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-compiler <= art/compiler/dex/verification_results.cc 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 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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::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_)); | ^~~~~~~~~~~~~~~ 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 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/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; | ^~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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::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::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: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::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-compiler <= art/compiler/driver/compiled_method_storage.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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::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/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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::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::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 '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-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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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::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::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::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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 '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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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/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\ | ^ 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_; | ^ 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) \ | ^ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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::GetName() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/thread.cc:2866:66: required from here 2866 | class_name_object.Assign(method->GetDeclaringClass()->GetName()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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_), | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-compiler <= art/compiler/driver/compiler_options.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/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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 { | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/bits/stl_construct.h:61, from /usr/include/c++/14.2.0/bits/stl_tempbuf.h:61, from /usr/include/c++/14.2.0/memory:66, from art/compiler/utils/arm64/jni_macro_assembler_arm64.h:21: /usr/include/c++/14.2.0/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 '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::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 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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]' 3336 | DO_THREAD_OFFSET(ThreadFlagsOffset(), "state_and_flags") | ^ art/runtime/thread.cc:3325:82: required from here 3325 | void Thread::DumpThreadOffset(std::ostream& os, uint32_t offset); | ^ 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 = long 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]' 759 | return ThreadOffsetFromTlsPtr(OFFSETOF_MEMBER(tls_ptr_sized_values, card_table)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 3337 | DO_THREAD_OFFSET(CardTableOffset(), "card_table") | ^ art/runtime/thread.cc:3325:82: required from here 3325 | void Thread::DumpThreadOffset(std::ostream& os, uint32_t offset); | ^ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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]' 3343 | DO_THREAD_OFFSET(ThinLockIdOffset(), "thin_lock_thread_id") | ^ art/runtime/thread.cc:3325:82: required from here 3325 | void Thread::DumpThreadOffset(std::ostream& os, uint32_t offset); | ^ 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]' 3344 | DO_THREAD_OFFSET(IsGcMarkingOffset(), "is_gc_marking") | ^ art/runtime/thread.cc:3325:82: required from here 3325 | void Thread::DumpThreadOffset(std::ostream& os, uint32_t offset); | ^ 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: At global scope: art/runtime/thread.h:1574:27: warning: 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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-compiler <= art/compiler/driver/dex_compilation_unit.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/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::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]' 3336 | DO_THREAD_OFFSET(ThreadFlagsOffset(), "state_and_flags") | ^ art/runtime/thread.cc:3327:82: required from here 3327 | void Thread::DumpThreadOffset(std::ostream& os, uint32_t offset); | ^ 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 = long 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]' 759 | return ThreadOffsetFromTlsPtr(OFFSETOF_MEMBER(tls_ptr_sized_values, card_table)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 3337 | DO_THREAD_OFFSET(CardTableOffset(), "card_table") | ^ art/runtime/thread.cc:3327:82: required from here 3327 | void Thread::DumpThreadOffset(std::ostream& os, uint32_t offset); | ^ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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]' 3343 | DO_THREAD_OFFSET(ThinLockIdOffset(), "thin_lock_thread_id") | ^ art/runtime/thread.cc:3327:82: required from here 3327 | void Thread::DumpThreadOffset(std::ostream& os, uint32_t offset); | ^ 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 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::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]' 3344 | DO_THREAD_OFFSET(IsGcMarkingOffset(), "is_gc_marking") | ^ art/runtime/thread.cc:3327:82: required from here 3327 | void Thread::DumpThreadOffset(std::ostream& os, uint32_t offset); | ^ 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-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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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_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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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::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 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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::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.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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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: 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/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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::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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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 '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-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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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\ | ^ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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-compiler <= art/compiler/jit/jit_compiler.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 '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::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_); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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) \ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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) \ | ^ 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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from /usr/include/c++/14.2.0/bits/locale_classes.h:40, from /usr/include/c++/14.2.0/bits/ios_base.h:41, from /usr/include/c++/14.2.0/ios:44, from /usr/include/c++/14.2.0/istream:40, from /usr/include/c++/14.2.0/fstream:40, from art/compiler/optimizing/scheduler.h:20: /usr/include/c++/14.2.0/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_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 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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::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/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.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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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::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\ | ^ host C++: libart-compiler <= art/compiler/jit/jit_logger.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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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) \ | ^ 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::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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 '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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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\ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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) \ | ^ 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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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 art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/bit_field.h:20, from art/compiler/optimizing/code_generator_arm64.h:20: /usr/include/c++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/algorithm:60, from art/compiler/optimizing/nodes.h:20: /usr/include/c++/14.2.0/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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-compiler <= art/compiler/jni/quick/calling_convention.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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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: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_), | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ In file included from art/runtime/handle.h:27: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 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/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) \ | ^ 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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: 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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_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::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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-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\ | ^ art/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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/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/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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::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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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: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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/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 '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-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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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/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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from art/libartbase/arch/instruction_set.h:21: /usr/include/c++/14.2.0/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/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/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) \ | ^ In file included from /usr/include/c++/14.2.0/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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:87:53: required from 'int32_t art::mirror::String::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]' 87 | return GetLengthFromCount(GetCount()); | ~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/string-inl.h:46:28: required from here 46 | int32_t count = GetLength(); | ~~~~~~~~~^~ 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/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/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/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 /usr/include/c++/14.2.0/cstddef:50, from art/libartbase/base/enums.h:20, from art/compiler/jni/quick/arm64/calling_convention_arm64.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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from /usr/include/c++/14.2.0/bits/locale_classes.h:40, from /usr/include/c++/14.2.0/bits/ios_base.h:41, from /usr/include/c++/14.2.0/ios:44, from /usr/include/c++/14.2.0/ostream:40, from /usr/include/c++/14.2.0/iostream:41, from art/compiler/utils/arm/assembler_arm_vixl.cc:17: /usr/include/c++/14.2.0/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/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/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 instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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/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::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/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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::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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/algorithm:60, from art/compiler/optimizing/nodes.h:20: /usr/include/c++/14.2.0/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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\ | ^ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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); | ^~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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-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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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::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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/bit_field.h:20, from art/compiler/optimizing/code_generator_arm64.h:20: /usr/include/c++/14.2.0/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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) \ | ^ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 art/runtime/base/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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/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++/14.2.0/bits/stl_construct.h:61, from /usr/include/c++/14.2.0/bits/stl_tempbuf.h:61, from /usr/include/c++/14.2.0/memory:66, from art/runtime/arch/instruction_set_features.h:21: /usr/include/c++/14.2.0/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]' 465 | access_to->GetClassLoader()); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:526:40: required from here 526 | return ResolvedFieldAccessTest(access_to, field, dex_cache, field_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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-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\ | ^ 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/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) \ | ^ 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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) \ | ^ 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_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++/14.2.0/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_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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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\ | ^ 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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/algorithm:60, from art/compiler/optimizing/nodes.h:20: /usr/include/c++/14.2.0/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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/algorithm:60, from art/compiler/optimizing/nodes.h:20: /usr/include/c++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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/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\ | ^ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 '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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/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; | ^~~~~~ 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\ | ^ 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/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++/14.2.0/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/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::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(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/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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::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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/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/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: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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/base/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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/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::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::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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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::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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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: 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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from art/libartbase/arch/instruction_set.h:21: /usr/include/c++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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_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_)); | ^~~~~~~~~~~~~~~ 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/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: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/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/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++/14.2.0/bits/stl_construct.h:61, from /usr/include/c++/14.2.0/bits/stl_tempbuf.h:61, from /usr/include/c++/14.2.0/memory:66, from art/compiler/compiled_method.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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/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]' 87 | return GetLengthFromCount(GetCount()); | ~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/string-inl.h:46:28: required from here 46 | int32_t count = GetLength(); | ~~~~~~~~~^~ 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_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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] In file included from art/runtime/base/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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/base/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/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/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; | ^~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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-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, 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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/vixl/aarch32/macro-assembler-aarch32.h:33, from art/compiler/utils/arm/assembler_arm_vixl.h:34: /usr/include/vixl/pool-manager-impl.h:490:17: warning: template-id not allowed for destructor in C++20 [-Wtemplate-id-cdtor] 490 | PoolManager::~PoolManager() VIXL_NEGATIVE_TESTING_ALLOW_EXCEPTION { | ^ /usr/include/vixl/pool-manager-impl.h:490:17: note: remove the '< >' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 '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] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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/libelffile/elf/elf_utils.h:22, from art/libelffile/elf/elf_builder.h:30, 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/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++/14.2.0/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:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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++/14.2.0/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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/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; | ^~~~~~~~ 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 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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_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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from art/libartbase/arch/instruction_set.h:21: /usr/include/c++/14.2.0/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_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 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/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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); | ^~~~~~~~ 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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from art/libartbase/arch/instruction_set.h:21: /usr/include/c++/14.2.0/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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::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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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-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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/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::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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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-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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 '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/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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from art/libartbase/arch/instruction_set.h:21: /usr/include/c++/14.2.0/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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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::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_; | ^ In file included from art/runtime/base/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 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/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 '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; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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/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/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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-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/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++/14.2.0/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++/14.2.0/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/libartbase/base/scoped_arena_containers.h: In instantiation of 'void art::ArenaDelete::ProtectMemory(T*, size_t) const [with T = art::verifier::RegisterLine; size_t = long unsigned int]': art/runtime/verifier/register_line-inl.h:233:18: required from here 233 | ProtectMemory(ptr, RegisterLine::ComputeSize(ptr->NumRegs())); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/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:36: art/runtime/verifier/register_line.h:66:7: note: 'class art::verifier::RegisterLine' declared here 66 | class RegisterLine { | ^~~~~~~~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? 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/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/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/base/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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++/14.2.0/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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/vixl/aarch32/macro-assembler-aarch32.h:33, from art/compiler/utils/arm/assembler_arm_vixl.h:34, from art/compiler/utils/arm/jni_macro_assembler_arm_vixl.h:27: /usr/include/vixl/pool-manager-impl.h:490:17: warning: template-id not allowed for destructor in C++20 [-Wtemplate-id-cdtor] 490 | PoolManager::~PoolManager() VIXL_NEGATIVE_TESTING_ALLOW_EXCEPTION { | ^ /usr/include/vixl/pool-manager-impl.h:490:17: note: remove the '< >' libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38, from art/compiler/optimizing/nodes.h:34: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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::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_)); | ^~~~~~~~~~~~~~~ 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_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/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_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/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++/14.2.0/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/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; | ^~~~~ host C++: libart-compiler <= art/compiler/jni/quick/jni_compiler.cc 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; | ^~~~~~~~ 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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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/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-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_root.h:22, from art/runtime/art_method.h:38, from art/compiler/optimizing/nodes.h:34: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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++/14.2.0/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++/14.2.0/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/base/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map:58, from /usr/include/c++/14.2.0/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:39: art/runtime/managed_stack.h:167:23: warning: 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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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: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/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; | ^~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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/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::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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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::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/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++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ art/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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-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/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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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/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++/14.2.0/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 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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_root.h:22, from art/runtime/art_method.h:38, from art/compiler/optimizing/nodes.h:34: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' host C++: libart-compiler <= art/compiler/optimizing/block_builder.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++/14.2.0/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++/14.2.0/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++/14.2.0/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: art/runtime/obj_ptr.h: At global scope: art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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_; | ^ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/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) \ | ^ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/algorithm:60, from art/compiler/driver/compiled_method_storage.cc:17: /usr/include/c++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/base/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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: 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; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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; | ^~~~~~~~ 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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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/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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from art/runtime/base/mutex.h:26: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/stl_tree.h:63, from /usr/include/c++/14.2.0/set:62, from art/compiler/dex/verification_results.h:21: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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) \ | ^ 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38, from art/compiler/optimizing/nodes.h:34: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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_field-inl.h:405:45: required from here 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map:58, from /usr/include/c++/14.2.0/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 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/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/bounds_check_elimination.cc 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. art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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/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/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/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/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++/14.2.0/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++/14.2.0/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 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/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 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); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/builder.cc 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::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 '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::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.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::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 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 { | ^~~~~~~~ /usr/include/c++/14.2.0/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/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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/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/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 { | ^~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map: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::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++/14.2.0/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/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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::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/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++/14.2.0/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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::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/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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/cha_guard_optimization.cc 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/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/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) | ~~~~~~~~~~~~~~~^~~~~ 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/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/base/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? 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/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 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/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\ | ^ 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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map:58, from /usr/include/c++/14.2.0/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/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/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::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-compiler <= art/compiler/optimizing/code_generator.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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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/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: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/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/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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/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: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ 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/libartbase/base/atomic.h:41:22: note: remove the '< >' 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::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) {} | ~~~~~~~~~^~~~~ 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/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) \ | ^ 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::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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? 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/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/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++/14.2.0/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/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 '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::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::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 '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/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 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::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::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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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::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]' 465 | access_to->GetClassLoader()); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:526:40: required from here 526 | return ResolvedFieldAccessTest(access_to, field, dex_cache, field_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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); | ^~~~~~~~~~~~~~~~~~~~~~~ art/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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_)); | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map:58, from /usr/include/c++/14.2.0/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 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/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::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::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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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; | ^~~~~ 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++/14.2.0/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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 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/code_generator_utils.cc 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/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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++/14.2.0/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/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/gc_root.h:22, from art/runtime/art_field.h:23, from art/runtime/art_field-inl.h:20: art/runtime/mirror/object_reference.h: At global scope: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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++/14.2.0/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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_; | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62, from art/compiler/dex/verified_method.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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::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_)); | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/14.2.0/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 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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/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++/14.2.0/bits/stl_construct.h:61, from /usr/include/c++/14.2.0/bits/stl_tempbuf.h:61, from /usr/include/c++/14.2.0/memory:66, from art/compiler/driver/compiler_options.h:20: /usr/include/c++/14.2.0/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38, from art/compiler/optimizing/nodes.h:34: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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\ | ^ 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 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 '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/base/locks.h:25, from art/runtime/handle_scope.h:25, from art/compiler/jni/quick/calling_convention.h:24: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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/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] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62, from art/compiler/debug/elf_debug_writer.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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/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/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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-compiler <= art/compiler/optimizing/code_sinking.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_)); | ^~~~~~~~~~~~~~~ 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++/14.2.0/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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 { | ^~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/base/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 art/runtime/base/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/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: 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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::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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/base/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/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; | ^~~~~ host C++: libart-compiler <= art/compiler/optimizing/constant_folding.cc 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) \ | ^ 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/arena_object.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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 struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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/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/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/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/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/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: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++/14.2.0/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) \ | ^ 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++/14.2.0/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++/14.2.0/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/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 { | ^~~~~~~~ /usr/include/c++/14.2.0/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/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) \ | ^ 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/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38, from art/compiler/optimizing/nodes.h:34: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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_; | ^ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map: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/gc_root.h:22, from art/runtime/art_method.h:38, from art/compiler/optimizing/nodes.h:34: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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/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/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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/runtime/gc_root.h:22, from art/runtime/art_method.h:38, from art/compiler/optimizing/nodes.h:34: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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::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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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++/14.2.0/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/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::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) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ 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/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++/14.2.0/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::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++/14.2.0/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++/14.2.0/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/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/base/locks.h:25, from art/runtime/entrypoints/quick/quick_entrypoints.h:22, from art/compiler/utils/arm/assembler_arm_vixl.cc:23: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' In file included from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h: At global scope: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/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/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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/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::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/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_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::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/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/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ 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/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/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:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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++/14.2.0/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 unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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/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/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h: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/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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 { | ^~~~~~ 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: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; | ^~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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_; | ^ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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/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) \ | ^ host C++: libart-compiler <= art/compiler/optimizing/constructor_fence_redundancy_elimination.cc In file included from art/runtime/base/locks.h:25, from art/runtime/handle.h:23, from art/compiler/driver/dex_compilation_unit.h:25: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/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++/14.2.0/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++/14.2.0/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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/stack_reference.h:21, from art/runtime/handle.h:28: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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\ | ^ 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) \ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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 { | ^~~~~~~~~~~~ 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++/14.2.0/bits/stl_construct.h:61, from /usr/include/c++/14.2.0/bits/stl_tempbuf.h:61, from /usr/include/c++/14.2.0/memory:66, from art/compiler/jit/jit_logger.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67: 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: 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/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/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/data_type.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/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h: At global scope: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from art/runtime/base/mutex.h:26: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/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 91 | ___ Ldr(temp, MemOperand(tr, Thread::IsGcMarkingOffset().Int32Value())); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 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_)); | ^~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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/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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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::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/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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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::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/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/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/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/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 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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::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/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::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_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++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map:58, from /usr/include/c++/14.2.0/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/locks.h:25, from art/runtime/entrypoints/quick/quick_entrypoints.h:22, from art/compiler/utils/arm64/jni_macro_assembler_arm64.cc:19: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' In file included from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' In file included from art/runtime/base/locks.h:25, from art/runtime/entrypoints/quick/quick_entrypoints.h:22, from art/compiler/utils/arm/jni_macro_assembler_arm_vixl.cc:22: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67: 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 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 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/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_)); | ^~~~~~~~~~~~~~~ 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/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/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++/14.2.0/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++/14.2.0/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 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++/14.2.0/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::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 { | ^~~~~~~~~~~~ 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) \ | ^ art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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++/14.2.0/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::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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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++/14.2.0/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-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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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::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:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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/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++/14.2.0/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 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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.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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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) \ | ^ 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: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 '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: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 '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/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/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/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_), 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/gc_root.h:22, from art/runtime/art_field.h:23, from art/runtime/art_field-inl.h:20: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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++/14.2.0/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/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 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: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++/14.2.0/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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.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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 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::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::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 '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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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 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/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' 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/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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: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/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: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++/14.2.0/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/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++/14.2.0/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++/14.2.0/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:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/14.2.0/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: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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++/14.2.0/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/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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map:58: 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 180 | ___ Ldr(mr, MemOperand(tr, Thread::IsGcMarkingOffset().Int32Value())); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/dead_code_elimination.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/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++/14.2.0/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:25, from art/runtime/class_linker.h:29, from art/compiler/driver/compiler_options.cc:29: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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/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++/14.2.0/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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_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/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from /usr/include/c++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/ext/concurrence.h:34, from /usr/include/c++/14.2.0/bits/shared_ptr_base.h:62, from /usr/include/c++/14.2.0/bits/shared_ptr.h:53, from /usr/include/c++/14.2.0/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::k64; size_t = long unsigned int]': art/runtime/thread.h:748:48: required from 'static constexpr art::ThreadOffset art::Thread::ExceptionOffset() [with art::PointerSize pointer_size = art::PointerSize::k64]' 748 | return ThreadOffsetFromTlsPtr(OFFSETOF_MEMBER(tls_ptr_sized_values, exception)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/utils/arm64/jni_macro_assembler_arm64.cc:628:60: required from here 628 | Thread::ExceptionOffset().Int32Value()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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 { | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/escape.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 = long 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]' 748 | return ThreadOffsetFromTlsPtr(OFFSETOF_MEMBER(tls_ptr_sized_values, exception)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/utils/arm/jni_macro_assembler_arm_vixl.cc:622:63: required from here 622 | Thread::ExceptionOffset().Int32Value()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/utils/arm64/jni_macro_assembler_arm64.cc:780:82: required from here 780 | ___ Ldr(mr.W(), MemOperand(tr, Thread::IsGcMarkingOffset().Int32Value())); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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_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; | ^~~~~ 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; | ^~~~~ 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++/14.2.0/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++/14.2.0/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() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/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 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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: | ^~~~ 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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map: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-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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/base/locks.h:25, from art/runtime/entrypoints/quick/quick_entrypoints.h:22, from art/compiler/utils/arm64/assembler_arm64.cc:19: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' In file included from /usr/include/c++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/ios:41, from /usr/include/c++/14.2.0/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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++/14.2.0/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++/14.2.0/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/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/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/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::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::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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 /usr/include/c++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/ext/concurrence.h:34, from /usr/include/c++/14.2.0/bits/shared_ptr_base.h:62, from /usr/include/c++/14.2.0/bits/shared_ptr.h:53, from /usr/include/c++/14.2.0/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/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/gc_root.h:22, from art/runtime/runtime.h:38, from art/compiler/dex/verified_method.cc:27: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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++/14.2.0/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.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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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(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/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/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/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(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/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86: 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; | ^~~~~~ art/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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/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 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++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/ext/concurrence.h:34, from /usr/include/c++/14.2.0/bits/shared_ptr_base.h:62, from /usr/include/c++/14.2.0/bits/shared_ptr.h:53, from /usr/include/c++/14.2.0/memory:80: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::IsGcMarkingOffset() [with art::PointerSize pointer_size = art::PointerSize::k64]': art/compiler/utils/arm64/assembler_arm64.cc:203:76: required from here 203 | ___ Ldr(temp, MemOperand(tr, Thread::IsGcMarkingOffset().Int32Value())); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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++/14.2.0/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62, from art/compiler/jni/quick/jni_compiler.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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\ | ^ 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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/scoped_arena_allocator.h:20: /usr/include/c++/14.2.0/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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/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/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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::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 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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:25, from art/runtime/gc_root.h:20, from art/runtime/art_method.h:38: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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: | ^~~~ 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/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) \ | ^ 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: | ^~~~ In file included from art/runtime/gc_root.h:22: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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/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.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++/14.2.0/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++/14.2.0/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++/14.2.0/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::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 { | ^~~~~~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/graph_checker.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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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/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::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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_; | ^ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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-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++/14.2.0/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++/14.2.0/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++/14.2.0/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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 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_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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/arena_object.h:20: /usr/include/c++/14.2.0/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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-compiler <= art/compiler/optimizing/graph_visualizer.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 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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.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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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 { | ^~~~~~~~~~~~ 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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/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/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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_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-compiler <= art/compiler/optimizing/gvn.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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/arena_object.h:20: /usr/include/c++/14.2.0/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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-compiler <= art/compiler/optimizing/induction_var_analysis.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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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); | ^~~~~~~~ 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++/14.2.0/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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: 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/functional:63, from libbase/include/android-base/logging.h:60, from art/compiler/optimizing/code_generator_utils.cc:19: /usr/include/c++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(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/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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++/14.2.0/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/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++/14.2.0/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/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) \ | ^ art/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/base/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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++/14.2.0/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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: 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 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/algorithm:60, from art/compiler/optimizing/nodes.h:20: /usr/include/c++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/induction_var_range.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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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/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/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/arena_object.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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++/14.2.0/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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: { | ^~~~ 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/gc_root.h:22, from art/runtime/art_method.h:38, from art/compiler/optimizing/nodes.h:34: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' In file included from art/runtime/base/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/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/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\ | ^ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 { | ^~~~~~~~ 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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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/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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/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_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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/arena_object.h:20: /usr/include/c++/14.2.0/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/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/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/inliner.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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/instruction_builder.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/base/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/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, 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++/14.2.0/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++/14.2.0/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++/14.2.0/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-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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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: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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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 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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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_; | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/algorithm:60, from art/compiler/optimizing/nodes.h:20: /usr/include/c++/14.2.0/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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++/14.2.0/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++/14.2.0/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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::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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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::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: At global scope: art/runtime/thread.h:1574:27: warning: 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::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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86: 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 '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 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/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) \ | ^ 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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(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/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/set:79: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/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, 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++/14.2.0/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/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++/14.2.0/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++/14.2.0/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_)); | ^~~~~~~~~~~~~~~ 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++/14.2.0/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/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++/14.2.0/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++/14.2.0/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/base/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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); | ^~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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, 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/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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/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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from art/libartbase/arch/instruction_set.h:21: /usr/include/c++/14.2.0/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/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::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/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/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_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/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) \ | ^ art/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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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++/14.2.0/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++/14.2.0/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/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) \ | ^ 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/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ /usr/include/c++/14.2.0/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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/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) \ | ^ 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]' 87 | return GetLengthFromCount(GetCount()); | ~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/string-inl.h:46:28: required from here 46 | int32_t count = GetLength(); | ~~~~~~~~~^~ 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:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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_; | ^~~~~~~~~~~~~~~~~~~~~~~ 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; | ^~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map: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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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; | ^~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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; | ^~~~~ 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 struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/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.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/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++/14.2.0/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++/14.2.0/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/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++/14.2.0/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/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/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::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/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\ | ^ 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/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++/14.2.0/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_)); | ^~~~~~~~~~~~~~~ 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/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_)); | ^~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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::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++/14.2.0/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/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_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86: 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 { | ^~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/compiler/optimizing/code_generator.h:30, from art/compiler/optimizing/common_arm64.h:20, from art/compiler/optimizing/instruction_simplifier_arm64.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/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/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++/14.2.0/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/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/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/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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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.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/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::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/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++/14.2.0/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++/14.2.0/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::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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/ext/concurrence.h:34, from /usr/include/c++/14.2.0/bits/shared_ptr_base.h:62, from /usr/include/c++/14.2.0/bits/shared_ptr.h:53, from /usr/include/c++/14.2.0/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/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/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::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.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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] 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::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++/14.2.0/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++/14.2.0/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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/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++/14.2.0/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/14.2.0/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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map: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/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/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/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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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 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 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/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 { | ^~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/instruction_simplifier.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_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/algorithm:60, from art/compiler/optimizing/nodes.h:20: /usr/include/c++/14.2.0/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: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 '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_); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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::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::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::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/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, 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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::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::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; | ^~~~~~~~~ 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\ | ^ 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++/14.2.0/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++/14.2.0/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/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++/14.2.0/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 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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.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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67: 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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-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\ | ^ 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_); | ^~~~~~~~~~~~~~~ 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/base/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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: 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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; | ^~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/intrinsic_objects.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++/14.2.0/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++/14.2.0/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++/14.2.0/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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 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-compiler <= art/compiler/optimizing/intrinsics.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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/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/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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++/14.2.0/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++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map: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 '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/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_); | ^~~~~~~~~~~~~~~ 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.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++/14.2.0/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++/14.2.0/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++/14.2.0/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_; | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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(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:39: art/runtime/managed_stack.h:167:23: warning: 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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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: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++/14.2.0/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/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::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/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::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_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, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ 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/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/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/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/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 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); | ^~~~~~~~ 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/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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/runtime/gc_root.h:22, from art/runtime/art_method.h:38, from art/compiler/optimizing/nodes.h:34: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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/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::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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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: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++/14.2.0/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++/14.2.0/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++/14.2.0/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 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/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::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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/algorithm:60, from art/compiler/optimizing/nodes.h:20: /usr/include/c++/14.2.0/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/base/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map:58, from /usr/include/c++/14.2.0/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 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-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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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/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/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::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/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; | ^~~~~ host C++: libart-compiler <= art/compiler/optimizing/licm.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/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/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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 { | ^~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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, | ~~~~~~~~^~~~~~ 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/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ 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 '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/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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: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++/14.2.0/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++/14.2.0/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/runtime/thread.h:1617:18: warning: 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_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:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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/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/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/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/quick/quick_dexcache_entrypoints.cc:113:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 113 | static ALWAYS_INLINE bool CanReferenceBss(ArtMethod* outer_method, ArtMethod* caller) | ^~~~~~~~~~~~~~~ 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/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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: { | ^~~~ 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:39: art/runtime/managed_stack.h:167:23: warning: 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/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++/14.2.0/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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map: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_); | ^~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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) \ | ^ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/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/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(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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/base/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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: 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++/14.2.0/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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ 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++/14.2.0/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 unless also declared 'inline' [-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; | ^~~~~~~~ /usr/include/c++/14.2.0/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 unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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/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++/14.2.0/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++/14.2.0/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/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++/14.2.0/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/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/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/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/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++/14.2.0/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/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\ | ^ 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 struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/base/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map:58, from /usr/include/c++/14.2.0/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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/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/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 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/vixl/aarch32/macro-assembler-aarch32.h:33, from art/compiler/optimizing/common_arm.h:29, from art/compiler/optimizing/code_generator_arm_vixl.h:22: /usr/include/vixl/pool-manager-impl.h: At global scope: /usr/include/vixl/pool-manager-impl.h:490:17: warning: template-id not allowed for destructor in C++20 [-Wtemplate-id-cdtor] 490 | PoolManager::~PoolManager() VIXL_NEGATIVE_TESTING_ALLOW_EXCEPTION { | ^ /usr/include/vixl/pool-manager-impl.h:490:17: note: remove the '< >' 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_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.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/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++/14.2.0/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/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 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::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::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/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::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 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 '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-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/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/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++/14.2.0/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/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 not defined here [-Wc++20-extensions] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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.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 not defined here [-Wc++20-extensions] /usr/include/c++/14.2.0/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++/14.2.0/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/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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/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/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38, from art/compiler/optimizing/nodes.h:34: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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/linear_order.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/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/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) {} | ~~~~~~~~~^~~~~ 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/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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 struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from /usr/include/c++/14.2.0/bits/locale_classes.h:40, from /usr/include/c++/14.2.0/bits/ios_base.h:41, from /usr/include/c++/14.2.0/ios:44, from /usr/include/c++/14.2.0/ostream:40, from art/compiler/optimizing/graph_checker.h:20: /usr/include/c++/14.2.0/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) {} | ~~~~~~~~~^~~~~ 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/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(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++/14.2.0/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\ | ^ 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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from art/compiler/optimizing/induction_var_analysis.h:20: /usr/include/c++/14.2.0/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 art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/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\ | ^ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 '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] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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; | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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::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: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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 '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/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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 '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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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/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(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/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/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 /usr/include/vixl/aarch32/macro-assembler-aarch32.h:33, from art/compiler/optimizing/common_arm.h:29, from art/compiler/optimizing/instruction_simplifier_arm.cc:20: /usr/include/vixl/pool-manager-impl.h: At global scope: /usr/include/vixl/pool-manager-impl.h:490:17: warning: template-id not allowed for destructor in C++20 [-Wtemplate-id-cdtor] 490 | PoolManager::~PoolManager() VIXL_NEGATIVE_TESTING_ALLOW_EXCEPTION { | ^ /usr/include/vixl/pool-manager-impl.h:490:17: note: remove the '< >' 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/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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/algorithm:60, from art/compiler/optimizing/nodes.h:20: /usr/include/c++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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::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/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 { | ^~~~~~~~ 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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from /usr/include/c++/14.2.0/bits/locale_classes.h:40, from /usr/include/c++/14.2.0/bits/ios_base.h:41, from /usr/include/c++/14.2.0/ios:44, from /usr/include/c++/14.2.0/ostream:40, from art/compiler/optimizing/graph_visualizer.h:20: /usr/include/c++/14.2.0/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/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/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: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/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++/14.2.0/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++/14.2.0/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/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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++/14.2.0/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++/14.2.0/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/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/base/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map:58, from /usr/include/c++/14.2.0/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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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 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:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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/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/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67: 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::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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 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/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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from art/compiler/optimizing/induction_var_analysis.h:20: /usr/include/c++/14.2.0/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/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::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-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 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::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::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::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-compiler <= art/compiler/optimizing/load_store_analysis.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 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.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:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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: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 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/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::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-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 '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::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.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.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::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: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 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_)); | ^~~~~~~~~~~~~~~ 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/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_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_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 '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/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++/14.2.0/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; | ^~~~~~ 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/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++/14.2.0/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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::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/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 '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 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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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++/14.2.0/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/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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++/14.2.0/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/base/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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_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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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/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 '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/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++/14.2.0/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++/14.2.0/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:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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); | ^~~~~~~~~~~~~~~~~~~~~~~ art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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(); | ^~~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/load_store_elimination.cc 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 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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map:58, from /usr/include/c++/14.2.0/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); | ^~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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++/14.2.0/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 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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.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/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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 '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::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/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/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::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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/vixl/aarch32/macro-assembler-aarch32.h:33, from art/compiler/optimizing/common_arm.h:29, from art/compiler/optimizing/code_generator_arm_vixl.h:22: /usr/include/vixl/pool-manager-impl.h: At global scope: /usr/include/vixl/pool-manager-impl.h:490:17: warning: template-id not allowed for destructor in C++20 [-Wtemplate-id-cdtor] 490 | PoolManager::~PoolManager() VIXL_NEGATIVE_TESTING_ALLOW_EXCEPTION { | ^ /usr/include/vixl/pool-manager-impl.h:490:17: note: remove the '< >' 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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::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 '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] In file included from art/runtime/base/locks.h:25, from art/runtime/gc_root.h:20, from art/runtime/art_method.h:38: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 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/base/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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/gc_root.h:22: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/locations.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 /usr/include/vixl/aarch32/macro-assembler-aarch32.h:33, from art/compiler/utils/arm/assembler_arm_vixl.h:34, from art/compiler/optimizing/intrinsics_arm_vixl.h:21: /usr/include/vixl/pool-manager-impl.h: At global scope: /usr/include/vixl/pool-manager-impl.h:490:17: warning: template-id not allowed for destructor in C++20 [-Wtemplate-id-cdtor] 490 | PoolManager::~PoolManager() VIXL_NEGATIVE_TESTING_ALLOW_EXCEPTION { | ^ /usr/include/vixl/pool-manager-impl.h:490:17: note: remove the '< >' 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/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/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long 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]' 890 | return ThreadOffsetFromTlsPtr(OFFSETOF_MEMBER(tls_ptr_sized_values, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 891 | top_handle_scope)); | ~~~~~~~~~~~~~~~~~~ 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]' 240 | Thread::TopHandleScopeOffset(), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/compiler/jni/quick/jni_compiler.cc:772:57: required from here 772 | return ArtJniCompileMethodInternal( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 773 | compiler_options, access_flags, method_idx, dex_file); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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]' 325 | Thread::IsGcMarkingOffset(), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/compiler/jni/quick/jni_compiler.cc:772:57: required from here 772 | return ArtJniCompileMethodInternal( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 773 | compiler_options, access_flags, method_idx, dex_file); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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-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_), | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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) \ | ^ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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 '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] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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/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/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++/14.2.0/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 = long 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]' 890 | return ThreadOffsetFromTlsPtr(OFFSETOF_MEMBER(tls_ptr_sized_values, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 891 | top_handle_scope)); | ~~~~~~~~~~~~~~~~~~ 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]' 240 | Thread::TopHandleScopeOffset(), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/compiler/jni/quick/jni_compiler.cc:775:57: required from here 775 | return ArtJniCompileMethodInternal( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 776 | compiler_options, access_flags, method_idx, dex_file); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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]' 325 | Thread::IsGcMarkingOffset(), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/compiler/jni/quick/jni_compiler.cc:775:57: required from here 775 | return ArtJniCompileMethodInternal( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 776 | compiler_options, access_flags, method_idx, dex_file); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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-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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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++/14.2.0/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/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/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' 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/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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 '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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62, from art/libartbase/base/array_ref.h:21, from art/compiler/optimizing/instruction_builder.h:20: /usr/include/c++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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/loop_analysis.cc libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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_), | ^~~~~~~~~~~~~~~~~~~~~~~ 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:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++/14.2.0/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/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::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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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\ | ^ art/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/loop_optimization.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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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: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::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/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++/14.2.0/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/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++/14.2.0/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++/14.2.0/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/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_; | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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_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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/functional:63, from art/libdexfile/dex/dex_file_types.h:22, from art/compiler/optimizing/inliner.h:20: /usr/include/c++/14.2.0/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::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/vixl/aarch32/macro-assembler-aarch32.h:33, from art/compiler/optimizing/common_arm.h:29, from art/compiler/optimizing/code_generator_arm_vixl.h:22: /usr/include/vixl/pool-manager-impl.h: At global scope: /usr/include/vixl/pool-manager-impl.h:490:17: warning: template-id not allowed for destructor in C++20 [-Wtemplate-id-cdtor] 490 | PoolManager::~PoolManager() VIXL_NEGATIVE_TESTING_ALLOW_EXCEPTION { | ^ /usr/include/vixl/pool-manager-impl.h:490:17: note: remove the '< >' 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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::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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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-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_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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: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:1617:18: warning: ignoring 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 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:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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/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: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-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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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\ | ^ 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/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; | ^~~~~~ 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) \ | ^ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 '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 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/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); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/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/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: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 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::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_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::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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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-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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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); | ^~~~~~~~ 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-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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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 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/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: 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/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.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 '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: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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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:39: art/runtime/managed_stack.h:167:23: warning: 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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/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) \ | ^ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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:39: art/runtime/managed_stack.h:167:23: warning: 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/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/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) \ | ^ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67: 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/base/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/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::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, 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/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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/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/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) \ | ^ 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/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/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::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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 '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-compiler <= art/compiler/optimizing/nodes.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 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 '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/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]' 87 | return GetLengthFromCount(GetCount()); | ~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/string-inl.h:46:28: required from here 46 | int32_t count = GetLength(); | ~~~~~~~~~^~ 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 '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_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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/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++/14.2.0/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/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/gc_root.h:22, from art/runtime/art_field.h:23, from art/runtime/art_field-inl.h:20: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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++/14.2.0/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++/14.2.0/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/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/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:39: art/runtime/managed_stack.h:167:23: warning: 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/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ In file included from /usr/include/c++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/locks.h:25, from art/runtime/handle.h:23, from art/compiler/optimizing/instruction_builder.h:27: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/stack_reference.h:21, from art/runtime/handle.h:28: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/optimization.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/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::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::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/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::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::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::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/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); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 '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 '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::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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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 /usr/include/c++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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/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++/14.2.0/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 art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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++/14.2.0/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.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::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/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::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::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::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::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/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 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.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::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 '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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 '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++/14.2.0/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++/14.2.0/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/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_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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/algorithm:60, from art/compiler/optimizing/nodes.h:20: /usr/include/c++/14.2.0/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/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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-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\ | ^ host C++: libart-compiler <= art/compiler/optimizing/optimizing_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++/14.2.0/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++/14.2.0/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++/14.2.0/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map:58, from /usr/include/c++/14.2.0/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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/algorithm:60, from art/compiler/optimizing/nodes.h:20: /usr/include/c++/14.2.0/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 instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/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++/14.2.0/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++/14.2.0/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/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::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 '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::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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from art/libartbase/arch/instruction_set.h:21: /usr/include/c++/14.2.0/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/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67: 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/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/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: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: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_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_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/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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/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/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::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/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/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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-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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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 '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/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) \ | ^ 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/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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::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/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/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 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::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::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/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 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-compiler <= art/compiler/optimizing/parallel_move_resolver.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/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::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::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 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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::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/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/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 '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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/prepare_for_register_allocation.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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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_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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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: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); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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/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++/14.2.0/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/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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:39: art/runtime/managed_stack.h:167:23: warning: 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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.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/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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/base/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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; | ^~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ art/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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-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 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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/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/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/algorithm:60, from art/compiler/optimizing/nodes.h:20: /usr/include/c++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/reference_type_propagation.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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86: 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/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/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::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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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++/14.2.0/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++/14.2.0/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/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/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\ | ^ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map: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.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-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]' 465 | access_to->GetClassLoader()); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:526:40: required from here 526 | return ResolvedFieldAccessTest(access_to, field, dex_cache, field_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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-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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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++/14.2.0/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_); | ^~~~~~~~~~~~~~~ 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/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/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/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/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.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/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/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 '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::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/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ 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/object_reference.h:167:34: note: remove the '< >' 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::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 '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::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::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::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/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 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: 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_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) \ | ^ 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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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::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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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::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++/14.2.0/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/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/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/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/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/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/class_linker-inl.h:246:5: note: here 246 | case kVirtual: { | ^~~~ 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/base/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/register_allocation_resolver.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/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\ | ^ 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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++/14.2.0/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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::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: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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::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::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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-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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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) \ | ^ 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/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/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/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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/algorithm:60, from art/compiler/optimizing/nodes.h:20: /usr/include/c++/14.2.0/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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/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: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/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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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/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/compiler/optimizing/nodes.cc:430:1: warning: multi-line comment [-Wcomment] 430 | // /\ | | /\ /\ | /\ | ^ 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/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' In file included from art/compiler/optimizing/code_generator_arm_vixl.cc:23: 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++/14.2.0/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/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++/14.2.0/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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: 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/arena_object.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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_arm64.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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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-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/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' In file included from art/libelffile/elf/elf_utils.h:22, from art/libelffile/elf/elf_builder.h:30, 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/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/base/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/deque:62, from art/libartbase/base/arena_containers.h:20: /usr/include/c++/14.2.0/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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++/14.2.0/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 '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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 '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/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/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/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/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/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/runtime/base/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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++/14.2.0/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++/14.2.0/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 = 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: | ^~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/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++/14.2.0/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++/14.2.0/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_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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map:58, from /usr/include/c++/14.2.0/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/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++/14.2.0/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/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 '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/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 '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/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/base/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/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 { | ^~~~~~ 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/algorithm:60, from art/compiler/optimizing/nodes.h:20: /usr/include/c++/14.2.0/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/gc_root.h:22, from art/runtime/art_method.h:38, from art/compiler/optimizing/nodes.h:34: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map:58, from /usr/include/c++/14.2.0/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 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::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::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 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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::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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/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++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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.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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/scoped_arena_allocator.h:20: /usr/include/c++/14.2.0/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/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++/14.2.0/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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/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/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/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/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_arm64.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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/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; | ^~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/mirror/object_array-inl.h:29, from art/compiler/optimizing/intrinsics_arm_vixl.cc: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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map:58, from /usr/include/c++/14.2.0/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/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++/14.2.0/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 art/runtime/base/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' In file included from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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: { | ^~~~ 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::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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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\ | ^ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/base/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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++/14.2.0/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; | ^~~~~ 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++/14.2.0/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/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/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/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' 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/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67: 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/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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::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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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-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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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 '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/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: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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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 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 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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.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_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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/arena_object.h:20: /usr/include/c++/14.2.0/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/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/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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 '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/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/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/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++/14.2.0/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/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/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/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 '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] 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(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/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map:58, from /usr/include/c++/14.2.0/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:66:18: note: in expansion of macro 'OFFSETOF_MEMBER' 66 | #define OFFSET_OF_OBJECT_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:66:18: note: in expansion of macro 'OFFSETOF_MEMBER' 66 | #define OFFSET_OF_OBJECT_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/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~ 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++/14.2.0/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; | ^~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/deque:62, from art/libartbase/base/arena_containers.h:20: /usr/include/c++/14.2.0/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.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:66:18: note: in expansion of macro 'OFFSETOF_MEMBER' 66 | #define OFFSET_OF_OBJECT_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:66:18: note: in expansion of macro 'OFFSETOF_MEMBER' 66 | #define OFFSET_OF_OBJECT_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:66:18: note: in expansion of macro 'OFFSETOF_MEMBER' 66 | #define OFFSET_OF_OBJECT_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:66:18: note: in expansion of macro 'OFFSETOF_MEMBER' 66 | #define OFFSET_OF_OBJECT_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:66:18: note: in expansion of macro 'OFFSETOF_MEMBER' 66 | #define OFFSET_OF_OBJECT_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:66:18: note: in expansion of macro 'OFFSETOF_MEMBER' 66 | #define OFFSET_OF_OBJECT_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:66:18: note: in expansion of macro 'OFFSETOF_MEMBER' 66 | #define OFFSET_OF_OBJECT_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:66:18: note: in expansion of macro 'OFFSETOF_MEMBER' 66 | #define OFFSET_OF_OBJECT_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:66:18: note: in expansion of macro 'OFFSETOF_MEMBER' 66 | #define OFFSET_OF_OBJECT_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:66:18: note: in expansion of macro 'OFFSETOF_MEMBER' 66 | #define OFFSET_OF_OBJECT_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:66:18: note: in expansion of macro 'OFFSETOF_MEMBER' 66 | #define OFFSET_OF_OBJECT_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:66:18: note: in expansion of macro 'OFFSETOF_MEMBER' 66 | #define OFFSET_OF_OBJECT_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:66:18: note: in expansion of macro 'OFFSETOF_MEMBER' 66 | #define OFFSET_OF_OBJECT_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:66:18: note: in expansion of macro 'OFFSETOF_MEMBER' 66 | #define OFFSET_OF_OBJECT_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:66:18: note: in expansion of macro 'OFFSETOF_MEMBER' 66 | #define OFFSET_OF_OBJECT_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:66:18: note: in expansion of macro 'OFFSETOF_MEMBER' 66 | #define OFFSET_OF_OBJECT_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:66:18: note: in expansion of macro 'OFFSETOF_MEMBER' 66 | #define OFFSET_OF_OBJECT_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:66:18: note: in expansion of macro 'OFFSETOF_MEMBER' 66 | #define OFFSET_OF_OBJECT_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:66:18: note: in expansion of macro 'OFFSETOF_MEMBER' 66 | #define OFFSET_OF_OBJECT_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:66:18: note: in expansion of macro 'OFFSETOF_MEMBER' 66 | #define OFFSET_OF_OBJECT_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:66:18: note: in expansion of macro 'OFFSETOF_MEMBER' 66 | #define OFFSET_OF_OBJECT_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:66:18: note: in expansion of macro 'OFFSETOF_MEMBER' 66 | #define OFFSET_OF_OBJECT_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/base/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h: At global scope: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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:66:18: note: in expansion of macro 'OFFSETOF_MEMBER' 66 | #define OFFSET_OF_OBJECT_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:66:18: note: in expansion of macro 'OFFSETOF_MEMBER' 66 | #define OFFSET_OF_OBJECT_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_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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/algorithm:60, from art/compiler/optimizing/nodes.h:20: /usr/include/c++/14.2.0/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:66:18: note: in expansion of macro 'OFFSETOF_MEMBER' 66 | #define OFFSET_OF_OBJECT_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/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/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++/14.2.0/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-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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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/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.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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 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); | ^~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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; | ^~~~~ 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++/14.2.0/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++/14.2.0/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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-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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::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, from art/compiler/optimizing/code_generator_arm64.cc:37: 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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/algorithm:60, from art/compiler/optimizing/nodes.h:20: /usr/include/c++/14.2.0/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/runtime/base/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/vixl/aarch32/macro-assembler-aarch32.h:33, from art/compiler/optimizing/common_arm.h:29, from art/compiler/optimizing/code_generator_arm_vixl.h:22, from art/compiler/optimizing/code_generator.cc:20: /usr/include/vixl/pool-manager-impl.h: At global scope: /usr/include/vixl/pool-manager-impl.h:490:17: warning: template-id not allowed for destructor in C++20 [-Wtemplate-id-cdtor] 490 | PoolManager::~PoolManager() VIXL_NEGATIVE_TESTING_ALLOW_EXCEPTION { | ^ /usr/include/vixl/pool-manager-impl.h:490:17: note: remove the '< >' 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: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++/14.2.0/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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map: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/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/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 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); | ^~~~~~~~~~~~~~~ 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/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/gc_root.h:22, from art/runtime/art_method.h:38, from art/compiler/optimizing/nodes.h:34: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' host C++: libart-compiler <= art/compiler/optimizing/register_allocator_graph_color.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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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; | ^~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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.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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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 '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] 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/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/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/base/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map:58, from /usr/include/c++/14.2.0/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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) \ | ^ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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_; | ^ 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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_allocator_linear_scan.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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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/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/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++/14.2.0/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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-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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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.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::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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.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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ In file included from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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 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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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 instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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/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++/14.2.0/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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map: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-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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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); | ^~~~~~~~~~~~~~~ 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/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/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' In file included from art/runtime/base/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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-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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 { | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62, from art/libartbase/base/array_ref.h:21, from art/compiler/optimizing/register_allocation_resolver.h:20: /usr/include/c++/14.2.0/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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.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/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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from art/runtime/base/mutex.h:26: /usr/include/c++/14.2.0/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 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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_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++/14.2.0/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++/14.2.0/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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, 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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: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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/select_generator.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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/deque:62, from art/libartbase/base/arena_containers.h:20: /usr/include/c++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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++/14.2.0/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++/14.2.0/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/mirror/object_array-inl.h:29, from art/compiler/optimizing/intrinsics_arm64.cc: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++/14.2.0/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/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); | ~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ 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: | ^~~~ /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/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); | ^~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/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/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 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::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); | ^~~~~~~~~ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/deque: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 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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-compiler <= art/compiler/optimizing/scheduler.cc 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/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: | ^~~~ 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/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); | ^~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/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/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++/14.2.0/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++/14.2.0/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 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++/14.2.0/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++/14.2.0/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++/14.2.0/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 '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/libartbase/base/scoped_arena_containers.h: In instantiation of 'void art::ArenaDelete::ProtectMemory(T*, size_t) const [with T = art::verifier::RegisterLine; size_t = long unsigned int]': art/runtime/verifier/register_line-inl.h:233:18: required from here 233 | ProtectMemory(ptr, RegisterLine::ComputeSize(ptr->NumRegs())); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/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/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/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); | ^~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/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); | ^~~~~~~~~ In file included from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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::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/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 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/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\ | ^ 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::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/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); | ^~~~~~~~~ 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/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/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); | ^~~~~~~~~ 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::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.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 <= art/compiler/optimizing/sharpening.cc 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); | ^~~~~~~~~ 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.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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/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); | ^~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' In file included from art/runtime/mirror/object.h:20, from art/runtime/mirror/class.h:31: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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, 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/mirror/object.h:25: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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) \ | ^ 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/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/deque: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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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/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::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 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/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 '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/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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/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++/14.2.0/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/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++/14.2.0/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++/14.2.0/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-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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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.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/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::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/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/side_effects_analysis.cc 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_; | ^ 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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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.h:39: art/runtime/managed_stack.h:167:23: warning: 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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; | ^~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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_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/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\ | ^ art/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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/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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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\ | ^ 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, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h: At global scope: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/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 unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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/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) {} | ~~~~~~~~~^~~~~ 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_; | ^ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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-compiler <= art/compiler/optimizing/ssa_builder.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 { | ^~~~~~~~~~~~ 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) \ | ^ 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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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++/14.2.0/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++/14.2.0/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/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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from art/libartbase/arch/instruction_set.h:21: /usr/include/c++/14.2.0/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; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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.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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map: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_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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++/14.2.0/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++/14.2.0/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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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.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/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 { | ^~~~~~~~ /usr/include/c++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/ssa_liveness_analysis.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.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/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/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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map:58, from /usr/include/c++/14.2.0/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/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/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/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::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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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 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/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/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~ 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++/14.2.0/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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/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\ | ^ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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 '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] cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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.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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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/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\ | ^ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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_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) \ | ^ 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/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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/deque: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::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/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 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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::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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/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 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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: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++/14.2.0/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.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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::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/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 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::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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::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::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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 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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::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/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/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_)); | ^~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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++/14.2.0/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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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-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: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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 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) \ | ^ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map:58, from /usr/include/c++/14.2.0/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 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, 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/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 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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-compiler <= art/compiler/optimizing/ssa_phi_elimination.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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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::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.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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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 '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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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; | ^~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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::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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 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/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++/14.2.0/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/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++/14.2.0/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++/14.2.0/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: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/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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::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 unless also declared 'inline' [-Wattributes] host C++: libart-compiler <= art/compiler/optimizing/stack_map_stream.cc 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++/14.2.0/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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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/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\ | ^ 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/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-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: At global scope: art/runtime/thread.h:1574:27: warning: 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/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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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::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.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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 art/runtime/base/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h: At global scope: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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\ | ^ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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/object_reference.h:23: art/runtime/obj_ptr.h: At global scope: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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/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 '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] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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/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/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/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/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/gc_root.h:22, from art/runtime/art_method.h:38, from art/compiler/optimizing/nodes.h:34: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(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_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/compiler/optimizing/induction_var_range.cc:1303:11: note: here 1303 | case HInductionVarAnalysis::kTripCountInBody: | ^~~~ 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/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) \ | ^ 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-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++/14.2.0/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++/14.2.0/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++/14.2.0/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) {} | ~~~~~~~~~^~~~~ 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/superblock_cloner.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/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/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/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/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/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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; | ^~~~~~~~ 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_; | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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: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/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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::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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 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\ | ^ In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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: 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++/14.2.0/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++/14.2.0/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++/14.2.0/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::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::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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] In file included from art/runtime/base/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h: At global scope: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from art/libartbase/arch/instruction_set.h:21: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart-compiler <= art/compiler/trampolines/trampoline_compiler.cc In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86: 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/gc_root.h:22, from art/runtime/art_method.h:38, from art/compiler/optimizing/nodes.h:34: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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_), | ^~~~~~~~~~~~~~~~~~~~~~~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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\ | ^ 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/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/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/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/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: | ^~~~ 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 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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:66:18: note: in expansion of macro 'OFFSETOF_MEMBER' 66 | #define OFFSET_OF_OBJECT_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/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: 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/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) \ | ^ 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++/14.2.0/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: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 '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] 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; | ^~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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-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::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ In function 'size_t art::{anonymous}::CountForwardedConstructorArguments(const art::CodeItemDataAccessor*, const art::Instruction*, uint16_t)', inlined from 'bool art::{anonymous}::DoAnalyseConstructor(const art::CodeItemDataAccessor*, art::ArtMethod*, ConstructorIPutData (&)[3])' at art/compiler/dex/inline_method_analyser.cc:322:60: art/compiler/dex/inline_method_analyser.cc:171:12: warning: 'args[0]' may be used uninitialized [-Wmaybe-uninitialized] 171 | uint16_t this_vreg = args[0]; | ^~~~~~~~~ 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: note: 'args[0]' was declared here 169 | uint32_t args[Instruction::kMaxVarArgRegs]; | ^~~~ 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/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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from art/libartbase/arch/instruction_set.h:21: /usr/include/c++/14.2.0/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_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; | ^~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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_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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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/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) | ~~~~~~~~~~^~~~~~ 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:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ 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) \ | ^ host C++: libart-compiler <= art/compiler/utils/jni_macro_assembler.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/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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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:39: art/runtime/managed_stack.h:167:23: warning: 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/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': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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; | ^~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for 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; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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/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) \ | ^ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(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/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(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: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/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++/14.2.0/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 '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::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: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-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_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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/arena_object.h:20: /usr/include/c++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart-compiler <= art/compiler/utils/swap_space.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/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) \ | ^ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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) \ | ^ 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/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++/14.2.0/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++/14.2.0/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/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::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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/deque:62, from art/libartbase/base/arena_containers.h:20: /usr/include/c++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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/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/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67: 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, 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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-compiler <= art/compiler/compiler.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/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/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++/14.2.0/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++/14.2.0/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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::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 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 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::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/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:297:31: required from 'static art::SubtypeCheckInfo::State art::SubtypeCheck::GetState(ClassPtr) [with ClassPtr = art::ObjPtr]' 297 | return GetSubtypeCheckInfo(klass).GetState(); | ~~~~~~~~~~~~~~~~~~~^~~~~~~ art/compiler/optimizing/graph_checker.cc:625:84: required from here 625 | SubtypeCheckInfo::State state = SubtypeCheck>::GetState(klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 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.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::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.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::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::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::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_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++/14.2.0/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/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) \ | ^ 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.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: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::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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/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/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/base/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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++/14.2.0/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/algorithm:60, from art/compiler/optimizing/nodes.h:20: /usr/include/c++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/compiler/optimizing/code_generator_vector_arm64.cc: In member function 'virtual void art::arm64::LocationsBuilderARM64::VisitVecSADAccumulate(art::HVecSADAccumulate*)': art/compiler/optimizing/code_generator_vector_arm64.cc:1122:29: warning: this statement may fall through [-Wimplicit-fallthrough=] 1122 | locations->AddTemp(Location::RequiresFpuRegister()); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/code_generator_vector_arm64.cc:1124:9: note: here 1124 | case DataType::Type::kInt32: | ^~~~ 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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from art/compiler/optimizing/scheduler.cc:17: /usr/include/c++/14.2.0/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/driver/compiler_options.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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/base/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/compiler/optimizing/code_generator_vector_arm64.cc: In member function 'virtual void art::arm64::InstructionCodeGeneratorARM64::VisitVecLoad(art::HVecLoad*)': art/compiler/optimizing/code_generator_vector_arm64.cc:1470:7: warning: this statement may fall through [-Wimplicit-fallthrough=] 1470 | } | ^ art/compiler/optimizing/code_generator_vector_arm64.cc:1472:5: note: here 1472 | case DataType::Type::kBool: | ^~~~ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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/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++/14.2.0/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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/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/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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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; | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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/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++/14.2.0/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 '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] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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/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++/14.2.0/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: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++/14.2.0/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++/14.2.0/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<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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; | ^~~~~~~~ /usr/include/c++/14.2.0/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:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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-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/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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 '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] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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.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:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(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/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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from /usr/include/c++/14.2.0/bits/locale_classes.h:40, from /usr/include/c++/14.2.0/bits/ios_base.h:41, from /usr/include/c++/14.2.0/ios:44, from /usr/include/c++/14.2.0/ostream:40, from /usr/include/c++/14.2.0/iostream:41, from art/compiler/optimizing/ssa_liveness_analysis.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/scoped_arena_allocator.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/base/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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++/14.2.0/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++/14.2.0/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++/14.2.0/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-compiler <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart-compiler_intermediates/linker/linker_patch.h_operator_out.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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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 <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart-compiler_intermediates/optimizing/locations.h_operator_out.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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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-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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 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) \ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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) \ | ^ 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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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 '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/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_), | ^~~~~~~~~~~~~~~~~~~~~~~ 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-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/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++/14.2.0/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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/algorithm:60, from art/compiler/optimizing/nodes.h:20: /usr/include/c++/14.2.0/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:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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_root.h:22, from art/runtime/art_method.h:38, from art/compiler/optimizing/nodes.h:34: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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/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++/14.2.0/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(); | ^~~~~~~~~ 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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, object_size_), new_object_size); art/runtime/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/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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-compiler <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart-compiler_intermediates/optimizing/optimizing_compiler_stats.h_operator_out.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 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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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) | ^~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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-compiler <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart-compiler_intermediates/utils/arm/constants_arm.h_operator_out.cc In file included from art/runtime/base/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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:39: art/runtime/managed_stack.h:167:23: warning: 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::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/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/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/base/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h: At global scope: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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 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 '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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/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++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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: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++/14.2.0/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/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++/14.2.0/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/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 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-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:39: art/runtime/managed_stack.h:167:23: warning: 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38, from art/compiler/optimizing/nodes.h:34: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' host C++: libart-compiler <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart-compiler_intermediates/utils/mips/assembler_mips.h_operator_out.cc 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/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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::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 { | ^~~~~~~~~~~~ art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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 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/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) \ | ^ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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; | ^~~~~ In file included from art/runtime/base/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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()); | ^~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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_), | ^~~~~~~~~~~~~~~~~~~~~~~ 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 '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/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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(); | ^~~~~~~~~ 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 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::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::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/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; | ^~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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(); | ^~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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::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: 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/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/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map: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/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::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:39: art/runtime/managed_stack.h:167:23: warning: 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_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 { | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62, from art/libartbase/base/atomic.h:23: /usr/include/c++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host SharedLib: libbacktrace (out/host/linux-x86/obj/lib/libbacktrace.so) 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++/14.2.0/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: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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_; | ^ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_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/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++/14.2.0/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 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; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 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 { | ^~~~~~~~ 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/hashtable_policy.h:36, from /usr/include/c++/14.2.0/bits/hashtable.h:35, from /usr/include/c++/14.2.0/bits/unordered_map.h:33, from /usr/include/c++/14.2.0/unordered_map:41, from /usr/include/c++/14.2.0/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/arena_object.h:20: /usr/include/c++/14.2.0/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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 art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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.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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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/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" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 '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 '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.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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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/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++/14.2.0/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++/14.2.0/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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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/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 '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.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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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::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:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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/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++/14.2.0/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/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::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/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 '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: At global scope: art/runtime/thread.h:1574:27: warning: 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::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; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67: 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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/deque: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::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); | ^~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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-dex2oat <= art/dex2oat/linker/arm64/relative_patcher_arm64.cc 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/compiler/optimizing/code_generator.cc:44: 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++/14.2.0/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libart-dex2oat <= art/dex2oat/linker/arm/relative_patcher_arm_base.cc 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::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 '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::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/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/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: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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.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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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.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/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/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ host C++: libart-dex2oat <= art/dex2oat/linker/arm/relative_patcher_thumb2.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-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::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: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::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/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/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/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/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::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 '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::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::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 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/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::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/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/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::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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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/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/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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::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/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] 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: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/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/base/mutex.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 '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/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::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: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/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/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++/14.2.0/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/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++/14.2.0/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/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) \ | ^ 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-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/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/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++/14.2.0/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++/14.2.0/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 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/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++/14.2.0/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/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) \ | ^ 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::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::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/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) \ | ^ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long 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]' 753 | return ThreadOffsetFromTlsPtr(OFFSETOF_MEMBER(tls_ptr_sized_values, opeer)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/intrinsics_arm_vixl.cc:611:60: required from here 611 | MemOperand(tr, Thread::PeerOffset().Int32Value())); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67: 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::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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/gc_root.h:22, from art/runtime/art_method.h:38, from art/compiler/optimizing/nodes.h:34: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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: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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/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/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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: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<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/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/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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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 '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/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 { | ^~~~~~~~~~~~ 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, 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map:58, from /usr/include/c++/14.2.0/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/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_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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::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:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-dex2oat <= art/dex2oat/dex/dex_to_dex_compiler.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.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/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::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: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++/14.2.0/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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 '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] 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_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/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/arm64/relative_patcher_arm64.h:21, from art/dex2oat/linker/arm64/relative_patcher_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) \ | ^ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/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:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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/compiler/optimizing/code_generator_arm_vixl.cc:1396:9: note: in expansion of macro 'DCHECK_EQ' 1396 | DCHECK_EQ(opposite, kCondGT); | ^~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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::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::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); | ^~~~~~~~~ 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: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/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/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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-dex2oat <= art/dex2oat/dex/quick_compiler_callbacks.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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 '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/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; | ^~~~~ 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); | ^~~~~~~~~ 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_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::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); | ^~~~~~~~~ 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/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: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); | ^~~~~~~~~ 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) \ | ^ 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.h:31, from art/compiler/optimizing/nodes.h:30: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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++/14.2.0/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/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/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/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) \ | ^ 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/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/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::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); | ^~~~~~~~~ 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); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/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); | ^~~~~~~~~ art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/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/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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) | ^~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/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); | ^~~~~~~~~ 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/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-dex2oat <= art/dex2oat/driver/compiler_driver.cc In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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 '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/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/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++/14.2.0/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; | ^~~~~~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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/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 '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::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: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.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: 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::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/entrypoints/quick/quick_entrypoints_enum.h:22, from art/dex2oat/linker/arm64/relative_patcher_arm64.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::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-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::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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an 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/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::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 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::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/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/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++/14.2.0/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++/14.2.0/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_)); | ^~~~~~~~~~~~~~~ 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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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++/14.2.0/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++/14.2.0/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/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 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/locks.h:25, from art/runtime/jni/jni_env_ext.h:22, from art/compiler/trampolines/trampoline_compiler.cc:21: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/arm64/relative_patcher_arm64.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 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/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-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: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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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::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++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map: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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long 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]' 759 | return ThreadOffsetFromTlsPtr(OFFSETOF_MEMBER(tls_ptr_sized_values, card_table)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/code_generator_arm64.cc:1179:73: required from here 1179 | __ Ldr(card, MemOperand(tr, Thread::CardTableOffset().Int32Value())); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/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/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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::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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 3042 | int32_t offset = Thread::InterruptedOffset().Int32Value(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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 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/gc_root.h:22, from art/runtime/indirect_reference_table.h:32, from art/runtime/jni/jni_env_ext.h:24: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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 '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-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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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::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::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::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::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::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::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::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 '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::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::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/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) \ | ^ 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/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::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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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: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++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 '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 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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/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_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/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_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++/14.2.0/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_)); | ^~~~~~~~~~~~~~~ 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/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++/14.2.0/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/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-dex2oat <= art/dex2oat/linker/elf_writer.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/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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++/14.2.0/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++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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::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_); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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::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/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) \ | ^ 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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/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) \ | ^ 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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/string:67: 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_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadFlagsOffset() [with art::PointerSize pointer_size = art::PointerSize::k64]': art/compiler/optimizing/code_generator_arm64.cc:1790:76: required from here 1790 | __ Ldrh(temp, MemOperand(tr, Thread::ThreadFlagsOffset().SizeValue())); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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++/14.2.0/bits/stl_construct.h:61, from /usr/include/c++/14.2.0/bits/stl_tempbuf.h:61, from /usr/include/c++/14.2.0/memory:66, from art/compiler/trampolines/trampoline_compiler.h:21: /usr/include/c++/14.2.0/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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from /usr/include/c++/14.2.0/bits/locale_classes.h:40, from /usr/include/c++/14.2.0/bits/ios_base.h:41, from /usr/include/c++/14.2.0/ios:44, from /usr/include/c++/14.2.0/ostream:40, from /usr/include/c++/14.2.0/iostream:41, from out/host/linux-x86/obj/SHARED_LIBRARIES/libart-compiler_intermediates/driver/compiler_options.h_operator_out.cc:1: /usr/include/c++/14.2.0/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, 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62, from art/compiler/utils/jni_macro_assembler.h:20: /usr/include/c++/14.2.0/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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++/14.2.0/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++/14.2.0/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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::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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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-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-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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 '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] 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\ | ^ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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::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:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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::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: At global scope: art/runtime/thread.h:1574:27: warning: 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/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/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/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/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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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.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_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map:58, from /usr/include/c++/14.2.0/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 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: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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::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 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/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/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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/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 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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::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/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' 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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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-dex2oat <= art/dex2oat/linker/elf_writer_quick.cc 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, 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 '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); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/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 '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/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: 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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from /usr/include/c++/14.2.0/bits/locale_classes.h:40, from /usr/include/c++/14.2.0/bits/ios_base.h:41, from /usr/include/c++/14.2.0/ios:44, from /usr/include/c++/14.2.0/ostream:40, from /usr/include/c++/14.2.0/iostream:41, from out/host/linux-x86/obj/SHARED_LIBRARIES/libart-compiler_intermediates/linker/linker_patch.h_operator_out.cc:1: /usr/include/c++/14.2.0/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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, 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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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) \ | ^ 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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from art/runtime/base/mutex.h:26: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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/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) \ | ^ 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/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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\ | ^ 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/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 '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-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/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::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/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\ | ^ art/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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::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/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 '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: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); | ^~~~~~~~ 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/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; | ^~~~~~~~~ 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/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 '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/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\ | ^ 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-dex2oat <= art/dex2oat/linker/image_writer.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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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); | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' 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/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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-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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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 '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] 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:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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: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::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: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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/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/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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::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/compiler/optimizing/code_generator_arm64.cc: In member function 'virtual void art::arm64::InstructionCodeGeneratorARM64::VisitLoadClass(art::HLoadClass*)': 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_arm64.cc:4641:7: note: in expansion of macro 'DCHECK_EQ' 4641 | DCHECK_EQ(read_barrier_option, kWithoutReadBarrier); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/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_arm64.cc:4641:7: note: in expansion of macro 'DCHECK_EQ' 4641 | DCHECK_EQ(read_barrier_option, kWithoutReadBarrier); | ^~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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_arm64.cc:4641:7: note: in expansion of macro 'DCHECK_EQ' 4641 | DCHECK_EQ(read_barrier_option, kWithoutReadBarrier); | ^~~~~~~~~ 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: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/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_arm64.cc:4641:7: note: in expansion of macro 'DCHECK_EQ' 4641 | DCHECK_EQ(read_barrier_option, kWithoutReadBarrier); | ^~~~~~~~~ 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: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_arm64.cc:4686:7: note: in expansion of macro 'DCHECK_EQ' 4686 | DCHECK_EQ(read_barrier_option, kWithoutReadBarrier); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/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_arm64.cc:4686:7: note: in expansion of macro 'DCHECK_EQ' 4686 | 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_arm64.cc:4686:7: note: in expansion of macro 'DCHECK_EQ' 4686 | DCHECK_EQ(read_barrier_option, kWithoutReadBarrier); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/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_arm64.cc:4686:7: note: in expansion of macro 'DCHECK_EQ' 4686 | DCHECK_EQ(read_barrier_option, kWithoutReadBarrier); | ^~~~~~~~~ In file included from art/libelffile/elf/elf_utils.h:22, from art/libelffile/elf/elf_builder.h:30, 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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from /usr/include/c++/14.2.0/bits/locale_classes.h:40, from /usr/include/c++/14.2.0/bits/ios_base.h:41, from /usr/include/c++/14.2.0/ios:44, from /usr/include/c++/14.2.0/ostream:40, from /usr/include/c++/14.2.0/iostream:41, from out/host/linux-x86/obj/SHARED_LIBRARIES/libart-compiler_intermediates/optimizing/locations.h_operator_out.cc:1: /usr/include/c++/14.2.0/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/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/vixl/aarch32/macro-assembler-aarch32.h:33, from art/compiler/utils/arm/assembler_arm_vixl.h:34, from art/compiler/utils/arm/jni_macro_assembler_arm_vixl.h:27: /usr/include/vixl/pool-manager-impl.h:490:17: warning: template-id not allowed for destructor in C++20 [-Wtemplate-id-cdtor] 490 | PoolManager::~PoolManager() VIXL_NEGATIVE_TESTING_ALLOW_EXCEPTION { | ^ /usr/include/vixl/pool-manager-impl.h:490:17: note: remove the '< >' art/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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 '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-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/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/unordered_map: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_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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/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/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/vixl/aarch32/macro-assembler-aarch32.h:33, from art/compiler/utils/arm/assembler_arm_vixl.h:34: /usr/include/vixl/pool-manager-impl.h:490:17: warning: template-id not allowed for destructor in C++20 [-Wtemplate-id-cdtor] 490 | PoolManager::~PoolManager() VIXL_NEGATIVE_TESTING_ALLOW_EXCEPTION { | ^ /usr/include/vixl/pool-manager-impl.h:490:17: note: remove the '< >' 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/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/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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/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::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::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/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::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; | ^~~~~~ 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++/14.2.0/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/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/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.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 '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::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-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, 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(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++/14.2.0/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/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/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/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 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::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 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/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/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++/14.2.0/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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::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-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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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 '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/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); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-dex2oat <= art/dex2oat/linker/multi_oat_relative_patcher.cc 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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::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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-dex2oat <= art/dex2oat/linker/oat_writer.cc art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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::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 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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: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.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::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-dex2oat <= art/dex2oat/linker/relative_patcher.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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-dex2oat <= out/host/linux-x86/obj/STATIC_LIBRARIES/libart-dex2oat_intermediates/dex/dex_to_dex_compiler.h_operator_out.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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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/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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86: 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long 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]' 759 | return ThreadOffsetFromTlsPtr(OFFSETOF_MEMBER(tls_ptr_sized_values, card_table)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:6579:68: required from here 6579 | kLoadWord, card, tr, Thread::CardTableOffset().Int32Value()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/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/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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from /usr/include/c++/14.2.0/bits/locale_classes.h:40, from /usr/include/c++/14.2.0/bits/ios_base.h:41, from /usr/include/c++/14.2.0/ios:44, from /usr/include/c++/14.2.0/ostream:40, from /usr/include/c++/14.2.0/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++/14.2.0/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: 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.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/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::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::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/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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 6657 | kLoadUnsignedHalfword, temp, tr, Thread::ThreadFlagsOffset().Int32Value()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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.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/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/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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/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: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/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); | ^~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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-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::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: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: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); | ^~~~~~~~~ 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_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 '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 '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: 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/deque:62, from art/dex2oat/linker/arm/relative_patcher_arm_base.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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/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++/14.2.0/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/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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from /usr/include/c++/14.2.0/bits/locale_classes.h:40, from /usr/include/c++/14.2.0/bits/ios_base.h:41, from /usr/include/c++/14.2.0/ios:44, from /usr/include/c++/14.2.0/ostream:40, from /usr/include/c++/14.2.0/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++/14.2.0/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::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.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/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/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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/object_reference.h:23: art/runtime/obj_ptr.h: At global scope: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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/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 { | ^~~~~~~~ /usr/include/c++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/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); | ^~~~~~~~~ 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::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-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::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::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); | ^~~~~~~~~ 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::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 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) \ | ^ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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) \ | ^ host C++: libart-dex2oat <= out/host/linux-x86/obj/STATIC_LIBRARIES/libart-dex2oat_intermediates/driver/compiler_driver.h_operator_out.cc host C++: libart-dex2oat <= out/host/linux-x86/obj/STATIC_LIBRARIES/libart-dex2oat_intermediates/linker/image_writer.h_operator_out.cc cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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) \ | ^ 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/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++/14.2.0/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, from art/compiler/optimizing/nodes.h:34: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++ 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(value_)) |= (1 << bit); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h: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/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 | ^~~~~~~ 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/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62, from art/libartbase/base/array_ref.h:21, from art/dex2oat/linker/arm/relative_patcher_thumb2.h:21: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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, 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++/14.2.0/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++/14.2.0/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++/14.2.0/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 '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/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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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(); | ^~~~~~~~~ Install: out/host/linux-x86/lib64/libbase.so 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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::k64; size_t = long unsigned int]': art/runtime/thread.h:753:48: required from 'static constexpr art::ThreadOffset art::Thread::PeerOffset() [with art::PointerSize pointer_size = art::PointerSize::k64]' 753 | return ThreadOffsetFromTlsPtr(OFFSETOF_MEMBER(tls_ptr_sized_values, opeer)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/intrinsics_arm64.cc:727:70: required from here 727 | MemOperand(tr, Thread::PeerOffset().Int32Value())); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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/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\ | ^ 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++/14.2.0/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/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/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ Copying: out/host/common/obj/JAVA_LIBRARIES/core-all-hostdex_intermediates/classes-jarjar.jar art/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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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\ | ^ 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62, from art/libartbase/base/array_ref.h:21, from art/dex2oat/linker/arm64/relative_patcher_arm64.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ Copy: dx (out/host/linux-x86/obj/EXECUTABLES/dx_intermediates/dx) 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) \ | ^ host SharedLib: libziparchive (out/host/linux-x86/obj/lib/libziparchive.so) 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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 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 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 '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/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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/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++/14.2.0/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::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_); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/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::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: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/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 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 '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 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 '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); | ^~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h: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 '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 SharedLib: libartpalette (out/host/linux-x86/obj/lib/libartpalette.so) 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/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/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/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; | ^~~~~~ Install: out/host/linux-x86/lib64/libbacktrace.so art/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 SharedLib: libjavacore (out/host/linux-x86/obj/lib/libjavacore.so) art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ Copying: out/host/common/obj/JAVA_LIBRARIES/core-all-hostdex_intermediates/classes.jar 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/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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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_), | ^~~~~~~~~~~~~~~~~~~~~~~ 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-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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from art/dex2oat/linker/elf_writer.h:22: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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; | ^~~~~~ Install: out/host/linux-x86/bin/dx art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' host SharedLib: libandroidfw (out/host/linux-x86/obj/lib/libandroidfw.so) 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::InterruptedOffset() [with art::PointerSize pointer_size = art::PointerSize::k64]': art/compiler/optimizing/intrinsics_arm64.cc:2907:64: required from here 2907 | __ Add(temp, tr, Thread::InterruptedOffset().Int32Value()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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 instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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; | ^~~~~~ Install: out/host/linux-x86/lib64/libziparchive.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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(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/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] 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/stl_tree.h:63, from /usr/include/c++/14.2.0/set:62, from art/dex2oat/dex/dex_to_dex_compiler.h:20: /usr/include/c++/14.2.0/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 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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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::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 '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] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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(); | ^~~~~~~~~ target Dex: core-all-hostdex libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but not defined here [-Wc++20-extensions] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ 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 not defined here [-Wc++20-extensions] libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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 SharedLib: libartbase (out/host/linux-x86/obj/lib/libartbase.so) In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/stack_reference.h:21, from art/runtime/handle.h:28, from art/runtime/verifier/verifier_deps.h:28: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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; | ^~~~~~ Install: out/host/linux-x86/lib64/libartpalette.so art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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); | ^~~~~~~~~~~~~~~~~~~~~~~ Install: out/host/linux-x86/lib64/libjavacore.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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/dex2oat/linker/arm64/relative_patcher_arm64.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 { | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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.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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/locks.h:25, from art/runtime/gc_root.h:20, from art/runtime/art_method.h:38: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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_root.h:22: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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]' 465 | access_to->GetClassLoader()); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:526:40: required from here 526 | return ResolvedFieldAccessTest(access_to, field, dex_cache, field_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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]' 87 | return GetLengthFromCount(GetCount()); | ~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/string-inl.h:46:28: required from here 46 | int32_t count = GetLength(); | ~~~~~~~~~^~ 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/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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: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_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ Install: out/host/linux-x86/lib64/libandroidfw.so art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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 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/base/locks.h:25, from art/runtime/gc_root.h:20, from art/runtime/art_method.h:38: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' In file included from art/runtime/gc_root.h:22: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/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/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::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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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_reference.h:21, from art/runtime/handle.h:28, from art/dex2oat/dex/dex_to_dex_compiler.h:28: art/runtime/mirror/object_reference.h: At global scope: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/bits/stl_tree.h:63, from /usr/include/c++/14.2.0/set:62, from art/dex2oat/driver/compiler_driver.h:21: /usr/include/c++/14.2.0/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/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++/14.2.0/bits/stl_construct.h:61, from /usr/include/c++/14.2.0/bits/stl_tempbuf.h:61, from /usr/include/c++/14.2.0/memory:66, from art/dex2oat/linker/elf_writer_quick.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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)': 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ In file included from art/runtime/base/mutex.h:31, from art/dex2oat/driver/compiler_driver.h:29: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ Install: out/host/linux-x86/lib64/libartbase.so 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++/14.2.0/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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::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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62, from art/dex2oat/linker/relative_patcher.h:20: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from art/libartbase/arch/instruction_set.h:21: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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::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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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: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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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_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); | ^~~~~~~~ In file included from art/libartbase/base/length_prefixed_array.h:26, from art/compiler/compiled_method-inl.h:23, from art/dex2oat/linker/arm64/relative_patcher_arm64.cc:24: 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++/14.2.0/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++/14.2.0/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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++/14.2.0/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]' 465 | access_to->GetClassLoader()); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:526:40: required from here 526 | return ResolvedFieldAccessTest(access_to, field, dex_cache, field_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 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 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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++/14.2.0/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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_), | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/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: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/driver/compiler_driver.h:28, from art/dex2oat/linker/arm64/relative_patcher_arm64.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++/14.2.0/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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::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/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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::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 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 '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: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::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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/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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/vector:62, from art/runtime/base/locks.h:23: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(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/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h: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/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/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/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/stack_reference.h:21, from art/runtime/handle.h:28, from art/dex2oat/dex/dex_to_dex_compiler.h:28: art/runtime/mirror/object_reference.h: At global scope: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ Install: out/host/linux-x86/lib64/libdexfile.so host SharedLib: libprofile (out/host/linux-x86/obj/lib/libprofile.so) In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86: 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 struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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 '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/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/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 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/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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from /usr/include/c++/14.2.0/bits/locale_classes.h:40, from /usr/include/c++/14.2.0/bits/ios_base.h:41, from /usr/include/c++/14.2.0/ios:44, from /usr/include/c++/14.2.0/ostream:40, from /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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++/14.2.0/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/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) | ~~~~~~~~~~~~~~~~~^~~~~ 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/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/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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(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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ Install: out/host/linux-x86/lib64/libprofile.so host SharedLib: libart-dexlayout (out/host/linux-x86/obj/lib/libart-dexlayout.so) 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++/14.2.0/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++/14.2.0/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++/14.2.0/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:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/14.2.0/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++/14.2.0/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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.h:31, from art/compiler/utils/swap_space.h:30, from art/compiler/driver/compiled_method_storage.h:28: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' In file included from /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/set:79: 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/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++/14.2.0/bits/stl_construct.h:61, from /usr/include/c++/14.2.0/bits/stl_tempbuf.h:61, from /usr/include/c++/14.2.0/memory:66, from art/dex2oat/linker/image_writer.h:24: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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/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; | ^~~~~~ 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/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::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/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/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 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::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 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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::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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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/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++/14.2.0/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.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/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/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::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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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:25, from art/runtime/gc_root.h:20, from art/runtime/art_method.h:38: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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/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_root.h:22: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h: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/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/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from /usr/include/c++/14.2.0/bits/locale_classes.h:40, from /usr/include/c++/14.2.0/bits/ios_base.h:41, from /usr/include/c++/14.2.0/ios:44, from /usr/include/c++/14.2.0/ostream:40, from /usr/include/c++/14.2.0/iostream:41, from out/host/linux-x86/obj/STATIC_LIBRARIES/libart-dex2oat_intermediates/driver/compiler_driver.h_operator_out.cc:1: /usr/include/c++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/stack_reference.h:21, from art/runtime/handle.h:28, from art/dex2oat/dex/dex_to_dex_compiler.h:28: art/runtime/mirror/object_reference.h: At global scope: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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: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.h:31, from art/dex2oat/driver/compiler_driver.h:29: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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: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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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: 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/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++/14.2.0/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++/14.2.0/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/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++/14.2.0/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/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]' 465 | access_to->GetClassLoader()); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:526:40: required from here 526 | return ResolvedFieldAccessTest(access_to, field, dex_cache, field_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] 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/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++/14.2.0/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14.2.0/string:47, from /usr/include/c++/14.2.0/bits/locale_classes.h:40, from /usr/include/c++/14.2.0/bits/ios_base.h:41, from /usr/include/c++/14.2.0/ios:44, from /usr/include/c++/14.2.0/ostream:40, from /usr/include/c++/14.2.0/iostream:41, from out/host/linux-x86/obj/STATIC_LIBRARIES/libart-dex2oat_intermediates/linker/image_writer.h_operator_out.cc:1: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/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, | ~~~~~~~~~~~~~~^~~~~~~~~ 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/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_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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field '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/compiler/optimizing/nodes.h:2690:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2690 | HExpression(HInstruction::InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2690:32: note: remove the '< >' art/compiler/optimizing/nodes.h:2692:32: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 2692 | HExpression(HInstruction::InstructionKind kind, | ^~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:2692:32: note: remove the '< >' art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2705:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2705 | DEFAULT_COPY_CONSTRUCTOR(Expression); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.h:1579:19: note: remove the '< >' 1579 | explicit H##type(const H##type& other) = default; | ^ art/compiler/optimizing/nodes.h:2727:3: note: in expansion of macro 'DEFAULT_COPY_CONSTRUCTOR' 2727 | DEFAULT_COPY_CONSTRUCTOR(Expression<0>); | ^~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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/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(Array, length_)); art/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/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++/14.2.0/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: art/runtime/obj_ptr.h: At global scope: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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/base/locks.h:25, from art/runtime/gc_root.h:20, from art/runtime/art_method.h:38: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' art/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/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 { | ^~~~~~~~ In file included from art/runtime/gc_root.h:22: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ /usr/include/c++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/bits/stl_algobase.h:65, from /usr/include/c++/14.2.0/list:62, from art/dex2oat/linker/oat_writer.h:22: /usr/include/c++/14.2.0/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++/14.2.0/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++/14.2.0/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ 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: | ^~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ Install: out/host/linux-x86/lib64/libart-dexlayout.so art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/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: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/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 /usr/include/c++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86: 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/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++/14.2.0/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/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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); | ^~~~~~~~ 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::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/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_reference.h:21, from art/runtime/handle.h:28, from art/dex2oat/dex/dex_to_dex_compiler.h:28: art/runtime/mirror/object_reference.h: At global scope: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' 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/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/vector:86: 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: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h: At global scope: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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::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 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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/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/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; | ^~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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.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/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/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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 '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 '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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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: 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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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/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/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/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/compiler/trampolines/trampoline_compiler.cc: In function 'std::unique_ptr > art::arm64::CreateTrampoline(art::ArenaAllocator*, art::EntryPointCallingConvention, art::ThreadOffset64)': art/compiler/trampolines/trampoline_compiler.cc:133:19: warning: redundant move in return statement [-Wredundant-move] 133 | return std::move(entry_stub); | ~~~~~~~~~^~~~~~~~~~~~ art/compiler/trampolines/trampoline_compiler.cc:133:19: note: remove 'std::move' call 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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++/14.2.0/cstddef:50, from /usr/include/c++/14.2.0/bits/memory_resource.h:38, from /usr/include/c++/14.2.0/set:79: 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/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/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/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/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++/14.2.0/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++/14.2.0/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++/14.2.0/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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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::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/vixl/aarch32/macro-assembler-aarch32.h:33, from art/compiler/utils/arm/assembler_arm_vixl.h:34: /usr/include/vixl/pool-manager-impl.h:490:17: warning: template-id not allowed for destructor in C++20 [-Wtemplate-id-cdtor] 490 | PoolManager::~PoolManager() VIXL_NEGATIVE_TESTING_ALLOW_EXCEPTION { | ^ /usr/include/vixl/pool-manager-impl.h:490:17: note: remove the '< >' art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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::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/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]' 465 | access_to->GetClassLoader()); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:526:40: required from here 526 | return ResolvedFieldAccessTest(access_to, field, dex_cache, field_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 '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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 '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/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h: At global scope: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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/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:87:53: required from 'int32_t art::mirror::String::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]' 87 | return GetLengthFromCount(GetCount()); | ~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/string-inl.h:46:28: required from here 46 | int32_t count = GetLength(); | ~~~~~~~~~^~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~ 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(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/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/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 '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.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/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; | ^~~~~~~~ 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++/14.2.0/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++/14.2.0/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; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/vixl/aarch32/macro-assembler-aarch32.h:33, from art/compiler/optimizing/common_arm.h:29, from art/compiler/optimizing/code_generator_arm_vixl.h:22, from art/compiler/optimizing/scheduler_arm.h:20, from art/compiler/optimizing/scheduler.cc:31: /usr/include/vixl/pool-manager-impl.h: At global scope: /usr/include/vixl/pool-manager-impl.h:490:17: warning: template-id not allowed for destructor in C++20 [-Wtemplate-id-cdtor] 490 | PoolManager::~PoolManager() VIXL_NEGATIVE_TESTING_ALLOW_EXCEPTION { | ^ /usr/include/vixl/pool-manager-impl.h:490:17: note: remove the '< >' In file included from art/runtime/mirror/object.h:20, from art/runtime/mirror/class.h:31: art/libartbase/base/atomic.h:39:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 39 | Atomic() : std::atomic(T()) { } | ^ art/libartbase/base/atomic.h:39:12: note: remove the '< >' art/libartbase/base/atomic.h:41:22: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 41 | explicit Atomic(T value) : std::atomic(value) { } | ^ art/libartbase/base/atomic.h:41:22: note: remove the '< >' 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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.h:25: art/runtime/mirror/object_reference.h:167:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 167 | CompressedReference() REQUIRES_SHARED(Locks::mutator_lock_) | ^ art/runtime/mirror/object_reference.h:167:34: note: remove the '< >' In file included from /usr/include/c++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/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/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++/14.2.0/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_); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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/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 331 | template class ElfWriterQuick; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 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.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.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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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 332 | template class ElfWriterQuick; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~ 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-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/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 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 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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++/14.2.0/bits/cxxabi_init_exception.h:38, from /usr/include/c++/14.2.0/bits/exception_ptr.h:36, from /usr/include/c++/14.2.0/exception:166, from /usr/include/c++/14.2.0/ext/concurrence.h:34, from /usr/include/c++/14.2.0/bits/shared_ptr_base.h:62, from /usr/include/c++/14.2.0/bits/shared_ptr.h:53, from /usr/include/c++/14.2.0/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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++/14.2.0/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++/14.2.0/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/compiler/optimizing/reference_type_propagation.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/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/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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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; | ^~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 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/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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] 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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | 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/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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::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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/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 '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 '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/stack_map.h:24, from art/runtime/oat_quick_method_header.h:24, from art/dex2oat/linker/arm64/relative_patcher_arm64.cc:33: 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': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/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 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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::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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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_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/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::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/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/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 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 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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; | ^~~~~ 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-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]' 465 | access_to->GetClassLoader()); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:526:40: required from here 526 | return ResolvedFieldAccessTest(access_to, field, dex_cache, field_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 '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] In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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: At global scope: art/runtime/thread.h:1574:27: warning: 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, 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++/14.2.0/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++/14.2.0/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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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/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/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/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/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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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 '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] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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++/14.2.0/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++/14.2.0/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++/14.2.0/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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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: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: 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/compiler/optimizing/code_generator_arm_vixl.cc:5567:7: note: here 5567 | case ADD: | ^~~~ 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::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 '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/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_)); | ^~~~~~~~~~~~~~~ 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: art/runtime/obj_ptr.h: At global scope: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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_), | ^~~~~~~~~~~~~~~~~~~~~~~ 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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] 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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/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::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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)': 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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: art/runtime/obj_ptr.h: At global scope: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h: At global scope: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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/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::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/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-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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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/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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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.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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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 '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-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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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_; | ^ 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_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::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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::k64; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: 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: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/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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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_method-inl.h:296:45: required from here 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 '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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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::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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 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::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 '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/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::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/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] 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/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ 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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] 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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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: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::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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/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 | } | ^ 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/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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 '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] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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/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/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); | ^ art/compiler/optimizing/optimization.cc:253:30: note: 'accessor.art::CodeItemDataAccessor::registers_size_' was declared here 253 | CodeItemDataAccessor accessor(*dex_compilation_unit.GetDexFile(), | ^~~~~~~~ art/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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.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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 '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::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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: 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++/14.2.0/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++/14.2.0/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++/14.2.0/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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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::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/object_reference.h:23: art/runtime/obj_ptr.h: At global scope: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro '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::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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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_), | ^~~~~~~~~~~~~~~~~~~~~~~ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 '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 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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/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::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/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/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 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 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); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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::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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro '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 '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] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_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 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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.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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 '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] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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-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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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::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/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 '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-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::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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_))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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::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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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::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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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::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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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::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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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::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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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 297 | if (cls->GetDexCache() == nullptr) { | ~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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::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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 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::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/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]' 465 | access_to->GetClassLoader()); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:526:40: required from here 526 | return ResolvedFieldAccessTest(access_to, field, dex_cache, field_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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: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/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 '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::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::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::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/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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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.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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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, 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++/14.2.0/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++/14.2.0/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++/14.2.0/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: 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-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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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-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/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::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/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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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-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 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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.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::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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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 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::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 '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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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: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.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::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::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::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::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::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.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 instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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::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/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/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/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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-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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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/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::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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/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 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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 '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] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_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::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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 '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] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 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_), | ^~~~~~~~~~~~~~~~~~~~~~~ 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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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::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 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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_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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] 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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/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 '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 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-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/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 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/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/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 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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 '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::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::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 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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/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-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 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_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_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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 '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-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, 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: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::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/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::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/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::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::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 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 '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 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::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/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::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/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 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/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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/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/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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::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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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::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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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::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/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: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::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 '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::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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: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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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::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/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 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::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/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::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::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: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::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::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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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::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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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-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]' 465 | access_to->GetClassLoader()); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:526:40: required from here 526 | return ResolvedFieldAccessTest(access_to, field, dex_cache, field_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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::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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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': /usr/include/c++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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: 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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/dex2oat/linker/arm64/relative_patcher_arm64.cc: In function 'bool art::linker::{anonymous}::IsAdrpPatch(const art::linker::LinkerPatch&)': art/dex2oat/linker/arm64/relative_patcher_arm64.cc:73:1: warning: control reaches end of non-void function [-Wreturn-type] 73 | } | ^ art/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/dex2oat/linker/arm64/relative_patcher_arm64.cc: In member function 'virtual uint32_t art::linker::Arm64RelativePatcher::MaxPositiveDisplacement(const art::linker::ArmBaseRelativePatcher::ThunkKey&)': art/dex2oat/linker/arm64/relative_patcher_arm64.cc:335:1: warning: control reaches end of non-void function [-Wreturn-type] 335 | } | ^ art/dex2oat/linker/arm64/relative_patcher_arm64.cc: In member function 'virtual uint32_t art::linker::Arm64RelativePatcher::MaxNegativeDisplacement(const art::linker::ArmBaseRelativePatcher::ThunkKey&)': art/dex2oat/linker/arm64/relative_patcher_arm64.cc:344:1: warning: control reaches end of non-void function [-Wreturn-type] 344 | } | ^ art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] 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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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/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_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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:101:50: required from here 101 | return GetStrings()[StringSlotIndex(string_idx)].load( | ^ 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: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:161:52: required from here 161 | return GetResolvedTypes()[TypeSlotIndex(type_idx)].load( | ^ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ art/runtime/mirror/dex_cache-inl.h:197:65: required from here 197 | return GetResolvedMethodTypes()[MethodTypeSlotIndex(proto_idx)].load( | ^ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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/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++/14.2.0/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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]' 465 | access_to->GetClassLoader()); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:526:40: required from here 526 | return ResolvedFieldAccessTest(access_to, field, dex_cache, field_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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 '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 '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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:346:23: required from here 346 | SetFieldPtr(StringsOffset(), strings); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:362:23: required from here 362 | SetFieldPtr(ResolvedTypesOffset(), resolved_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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++/14.2.0/atomic:210:5: required from 'constexpr const int std::atomic >::_S_min_alignment' 210 | = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | ^~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:214:11: required from 'constexpr const int std::atomic >::_S_alignment' 214 | = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | ^~~~~~~~~~~~~~~~ /usr/include/c++/14.2.0/atomic:216:33: required from 'struct std::atomic >' 216 | alignas(_S_alignment) _Tp _M_i _GLIBCXX20_INIT(_Tp()); | ^~~~ 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 >*]' 579 | field_offset, reinterpret_cast32(new_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 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 >*]' 556 | SetFieldPtrWithSize( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 557 | field_offset, new_value, kRuntimePointerSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:394:23: required from here 394 | SetFieldPtr(ResolvedMethodTypesOffset(), resolved_method_types); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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]' 465 | access_to->GetClassLoader()); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:526:40: required from here 526 | return ResolvedFieldAccessTest(access_to, field, dex_cache, field_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/runtime/art_method-inl.h:20: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/class_linker.cc: In member function 'art::ObjPtr art::ClassLinker::FindClass(art::Thread*, const char*, art::Handle)': art/runtime/class_linker.cc:3068:3: warning: 'descriptor_equals' may be used uninitialized [-Wmaybe-uninitialized] 3068 | if (UNLIKELY(!descriptor_equals)) { | ^~ art/runtime/class_linker.cc:2937:8: note: 'descriptor_equals' was declared here 2937 | bool descriptor_equals; | ^~~~~~~~~~~~~~~~~ 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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.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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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: 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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] 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++/14.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ 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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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_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++/14.2.0/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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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_method-inl.h:296:45: required from here 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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/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 '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 '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/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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::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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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++/14.2.0/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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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/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.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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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-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::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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-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_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/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_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/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" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/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/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/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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/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/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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 not defined here [-Wc++20-extensions] 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 not defined here [-Wc++20-extensions] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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]' 337 | return klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/class_linker-inl.h:75:65: required from here 75 | resolved = DoResolveString(string_idx, referrer->GetDexCache()); | ~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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, | ~~~~~~~~^~~~ 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) { | ^~~~~ | & 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 '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 '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 member function 'bool art::CompilerDriver::FastVerify(jobject, const std::vector&, art::TimingLogger*, art::VerificationResults*)': 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 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/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/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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, | ~~~~~~~~^~~~~~~~~~~~ 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(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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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/dex2oat/linker/image_writer.cc: In member function 'void art::linker::ImageWriter::CopyAndFixupObject(art::mirror::Object*)': art/dex2oat/linker/image_writer.cc:3001:9: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 3001 | memcpy(dst, src, n); | ~~~~~~^~~~~~~~~~~~~ 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/dex2oat/driver/compiler_driver.cc:1514:57: required from here 1514 | const DexFile& original_dex_file = *klass->GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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/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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 296 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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::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]' 82 | super_class->NumReferenceInstanceFields(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/dex2oat/driver/compiler_driver.cc:1278:30: required from here 1278 | object->VisitReferences(*this, *this); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ 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/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/compiler/optimizing/stack_map_stream.cc:288:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/compiler/optimizing/stack_map_stream.cc:288:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/compiler/optimizing/stack_map_stream.cc:288:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/compiler/optimizing/stack_map_stream.cc:288:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/compiler/optimizing/stack_map_stream.cc:288:27: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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/dex2oat/linker/image_writer.cc:1146:61: required from here 1146 | ObjPtr vtable = klass->GetVTable(); | ~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 1409 | ObjPtr ext(klass->GetExtData()); | ~~~~~~~~~~~~~~~~~^~ 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 1427 | if (klass->IsResolved() && klass->NumReferenceStaticFields() != 0) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 1464 | ObjPtr dex_cache = klass->GetDexCache(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 2107 | if (class_loader->GetClassTable() != nullptr) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 3145 | orig->FixupNativePointers(copy, target_ptr_size_, NativeLocationVisitor(this)); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 '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]' 913 | klass->GetReferenceInstanceOffsets(), visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 41 | VisitInstanceFieldsReferences(klass, visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ art/dex2oat/driver/compiler_driver.cc:1278:30: required from here 1278 | object->VisitReferences(*this, *this); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ 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 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]' 41 | ClassTable* const class_table = GetClassTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 68 | class_loader->VisitReferences(klass, visitor); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ art/dex2oat/driver/compiler_driver.cc:1278:30: required from here 1278 | object->VisitReferences(*this, *this); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ 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/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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]' 87 | return GetLengthFromCount(GetCount()); | ~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/string-inl.h:46:28: required from here 46 | int32_t count = GetLength(); | ~~~~~~~~~^~ 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]' 82 | super_class->NumReferenceInstanceFields(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/dex2oat/linker/image_writer.cc:481:53: required from here 479 | object->VisitReferences(visitor, visitor); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ 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-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]' 913 | klass->GetReferenceInstanceOffsets(), visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 41 | VisitInstanceFieldsReferences(klass, visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ art/dex2oat/linker/image_writer.cc:481:53: required from here 479 | object->VisitReferences(visitor, visitor); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ 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::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*]' 475 | SubtypeCheckBitsAndStatus old_value = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:282:26: required from 'static art::SubtypeCheckInfo::State art::SubtypeCheck::ForceUninitialize(ClassPtr) [with ClassPtr = art::mirror::Class*]' 282 | WriteSubtypeCheckBits(klass, scb_uninitialized); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ art/dex2oat/linker/image_writer.cc:3167:52: required from here 3167 | SubtypeCheck::ForceUninitialize(copy); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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.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]' 888 | kIsStatic ? klass->NumReferenceStaticFields() : klass->NumReferenceInstanceFields(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 912 | VisitFieldsReferences( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 913 | klass->GetReferenceInstanceOffsets(), visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 41 | VisitInstanceFieldsReferences(klass, visitor); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ art/dex2oat/driver/compiler_driver.cc:1278:30: required from here 1278 | object->VisitReferences(*this, *this); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ 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]' 73 | ObjPtr ext(GetExtData()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 49 | VisitNativeRoots( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 50 | visitor, Runtime::Current()->GetClassLinker()->GetImagePointerSize()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 52 | as_klass->VisitReferences(klass, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 53 | visitor); | ~~~~~~~~ art/dex2oat/driver/compiler_driver.cc:1278:30: required from here 1278 | object->VisitReferences(*this, *this); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ 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 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]' 73 | ObjPtr ext(GetExtData()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 49 | VisitNativeRoots( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 50 | visitor, Runtime::Current()->GetClassLinker()->GetImagePointerSize()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 52 | as_klass->VisitReferences(klass, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 53 | visitor); | ~~~~~~~~ art/dex2oat/linker/image_writer.cc:481:53: required from here 479 | object->VisitReferences(visitor, visitor); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ 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/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]' 50 | ObjPtr arr(GetObsoleteMethods()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 75 | ext->VisitNativeRoots(visitor, pointer_size); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ 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]' 49 | VisitNativeRoots( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 50 | visitor, Runtime::Current()->GetClassLinker()->GetImagePointerSize()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 52 | as_klass->VisitReferences(klass, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 53 | visitor); | ~~~~~~~~ art/dex2oat/driver/compiler_driver.cc:1278:30: required from here 1278 | object->VisitReferences(*this, *this); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ 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::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]' 50 | ObjPtr arr(GetObsoleteMethods()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 75 | ext->VisitNativeRoots(visitor, pointer_size); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ 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]' 49 | VisitNativeRoots( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 50 | visitor, Runtime::Current()->GetClassLinker()->GetImagePointerSize()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 52 | as_klass->VisitReferences(klass, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 53 | visitor); | ~~~~~~~~ art/dex2oat/linker/image_writer.cc:481:53: required from here 479 | object->VisitReferences(visitor, visitor); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ 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]' 50 | ObjPtr arr(GetObsoleteMethods()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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]' 75 | ext->VisitNativeRoots(visitor, pointer_size); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ 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]' 49 | VisitNativeRoots( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 50 | visitor, Runtime::Current()->GetClassLinker()->GetImagePointerSize()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]' 52 | as_klass->VisitReferences(klass, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 53 | visitor); | ~~~~~~~~ art/dex2oat/linker/image_writer.cc:1347:27: required from here 1347 | ref->VisitReferences(*this, *this); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ 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/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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: art/runtime/obj_ptr.h: At global scope: art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/dex2oat/linker/image_writer.cc:643:6: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 643 | bool ImageWriter::IsValidAppImageStringReference(ObjPtr referred_obj) const { | ^~~~~~~~~~~ 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 264 | SetClassFlags(GetClassFlags() | kClassFlagDexCache); | ~~~~~~~~~~~~~^~ 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 50 | return GetLength() / kMax; | ~~~~~~~~~^~ 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 85 | return GetSuperClass() != nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 316 | return GetVTable() != nullptr || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 440 | ObjPtr java_lang_Object = src->GetSuperClass(); | ~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 838 | return *GetDexCache()->GetDexFile(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 851 | return strcmp(Primitive::Descriptor(klass->GetPrimitiveType()), match) == 0; | ~~~~~~~~~~~~~~~~~~~~~~~^~ 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 852 | } else if (klass->IsProxyClass()) { | ~~~~~~~~~~~~~~~~~~~^~ 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 889 | return GetClassLoader() == nullptr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/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 = long unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here 1017 | return GetComponentType()->GetPrimitiveTypeSizeShift(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 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 405 | return GetDeclaringClass()->GetClassLoader(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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_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-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 1522 | declaring_class->GetDexCache(), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:704:53: required from here 704 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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 = long unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = long unsigned int]' 714 | return ThreadOffsetFromTlsPtr( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 715 | OFFSETOF_MEMBER(tls_ptr_sized_values, quick_entrypoints) + quick_entrypoint_offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:707:53: required from here 707 | return QuickEntryPointOffset(quick_entrypoint_offset). | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, 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]' 336 | ObjPtr vtable = GetVTable(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/mirror/class-inl.h:622:24: required from here 622 | return GetVTableEntry(method->GetMethodIndex(), pointer_size); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ 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 = long unsigned int]' 357 | result = AsClass()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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/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); | ^~~~~~~~ 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; | ^~~~~~~~~~ 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 = long unsigned int]' 572 | SubtypeCheckBitsAndStatus current_bits_and_status = ReadField(klass); | ~~~~~~~~~^~~~~~~ art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' 565 | return GetSubtypeCheckInfo(klass, klass->Depth()); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' 355 | SubtypeCheckInfo sci = GetSubtypeCheckInfo(source); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h:575:82: required from here 575 | SubtypeCheckInfo::Result sc_result = SubtypeCheck>::IsSubtypeOf(dis, klass); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 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]' 194 | return kUseStringCompression && IsCompressed(GetCount()); | ~~~~~~~~^~ art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 72 | if (IsCompressed()) { | ~~~~~~~~~~~~^~ art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = long unsigned int]' 359 | result = AsString()->template SizeOf(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ art/runtime/gc/space/region_space-inl.h:308:76: required from here 308 | const uintptr_t position = reinterpret_cast(obj) + obj->SizeOf(); | ~~~~~~~~~~~^~ 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 unless also declared 'inline' [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-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 unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable unless also declared 'inline' [-Wattributes] 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:248: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:248: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); | ^~~~~~~~ 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:248: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:248: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); | ^~~~~~~~ host SharedLib: libart (out/host/linux-x86/obj/lib/libart.so) Install: out/host/linux-x86/lib64/libart.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 host SharedLib: libart-compiler (out/host/linux-x86/obj/lib/libart-compiler.so) 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) Install: out/host/linux-x86/lib64/libart-compiler.so host StaticLib: libart-dex2oat (out/host/linux-x86/obj/STATIC_LIBRARIES/libart-dex2oat_intermediates/libart-dex2oat.a) 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-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. Note: Some input files use 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/apachehttp-hostdex_intermediates/classes-jarjar.jar Copying: out/host/common/obj/JAVA_LIBRARIES/apachehttp-hostdex_intermediates/classes.jar target Dex: apachehttp-hostdex Copying: out/host/common/obj/JAVA_LIBRARIES/okhttp-hostdex_intermediates/classes.jar target Dex: okhttp-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 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. 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/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: apachehttp-hostdex (out/host/common/obj/JAVA_LIBRARIES/apachehttp-hostdex_intermediates/javalib.jar) Install: out/host/linux-x86/framework/apachehttp-hostdex.jar Copying: out/host/common/obj/JAVA_LIBRARIES/bouncycastle-hostdex_intermediates/classes.jar target Dex: bouncycastle-hostdex 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: 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=armv8 TARGET_CPU_VARIANT=generic TARGET_2ND_ARCH= TARGET_2ND_ARCH_VARIANT= TARGET_2ND_CPU_VARIANT= HOST_ARCH=arm64 HOST_OS=linux HOST_OS_EXTRA=Linux-6.1.90-0-lts-aarch64-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-c4d890772a4baa583ef5caea03e8a2a351871e5d//out/host/linux-x86/lib64/libjavacore.so \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-c4d890772a4baa583ef5caea03e8a2a351871e5d//out/host/linux-x86/lib64/libnativehelper.so \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-c4d890772a4baa583ef5caea03e8a2a351871e5d//out/host/linux-x86/lib64/libopenjdk.so \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-c4d890772a4baa583ef5caea03e8a2a351871e5d//out/host/linux-x86/lib64/libopenjdkjvm.so \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-c4d890772a4baa583ef5caea03e8a2a351871e5d//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-c4d890772a4baa583ef5caea03e8a2a351871e5d//out/host/linux-x86/lib64/libandroidfw.so \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-c4d890772a4baa583ef5caea03e8a2a351871e5d//out/host/linux-x86/lib64/libart.so \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-c4d890772a4baa583ef5caea03e8a2a351871e5d//out/host/linux-x86/lib64/libart-compiler.so \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-c4d890772a4baa583ef5caea03e8a2a351871e5d//out/host/linux-x86/lib64/libart-dexlayout.so \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-c4d890772a4baa583ef5caea03e8a2a351871e5d//out/host/linux-x86/lib64/libartbase.so \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-c4d890772a4baa583ef5caea03e8a2a351871e5d//out/host/linux-x86/lib64/libartpalette.so \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-c4d890772a4baa583ef5caea03e8a2a351871e5d//out/host/linux-x86/lib64/libbacktrace.so \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-c4d890772a4baa583ef5caea03e8a2a351871e5d//out/host/linux-x86/lib64/libbase.so \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-c4d890772a4baa583ef5caea03e8a2a351871e5d//out/host/linux-x86/lib64/libcutils.so \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-c4d890772a4baa583ef5caea03e8a2a351871e5d//out/host/linux-x86/lib64/libdexfile.so \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-c4d890772a4baa583ef5caea03e8a2a351871e5d//out/host/linux-x86/lib64/liblog.so \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-c4d890772a4baa583ef5caea03e8a2a351871e5d//out/host/linux-x86/lib64/libnativebridge.so \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-c4d890772a4baa583ef5caea03e8a2a351871e5d//out/host/linux-x86/lib64/libprofile.so \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-c4d890772a4baa583ef5caea03e8a2a351871e5d//out/host/linux-x86/lib64/libsigchain.so \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-c4d890772a4baa583ef5caea03e8a2a351871e5d//out/host/linux-x86/lib64/libunwind.so \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-c4d890772a4baa583ef5caea03e8a2a351871e5d//out/host/linux-x86/lib64/libutils.so \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-c4d890772a4baa583ef5caea03e8a2a351871e5d//out/host/linux-x86/lib64/libziparchive.so test -f /home/buildozer/aports/testing/art_standalone/src/art_standalone-c4d890772a4baa583ef5caea03e8a2a351871e5d//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-c4d890772a4baa583ef5caea03e8a2a351871e5d//out/host/linux-x86/bin/dalvikvm || true test -f /home/buildozer/aports/testing/art_standalone/src/art_standalone-c4d890772a4baa583ef5caea03e8a2a351871e5d//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-c4d890772a4baa583ef5caea03e8a2a351871e5d//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-c4d890772a4baa583ef5caea03e8a2a351871e5d//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-c4d890772a4baa583ef5caea03e8a2a351871e5d//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-c4d890772a4baa583ef5caea03e8a2a351871e5d//out/host/linux-x86/framework/apachehttp-hostdex.jar \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-c4d890772a4baa583ef5caea03e8a2a351871e5d//out/host/linux-x86/framework/apache-xml-hostdex.jar \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-c4d890772a4baa583ef5caea03e8a2a351871e5d//out/host/linux-x86/framework/bouncycastle-hostdex.jar \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-c4d890772a4baa583ef5caea03e8a2a351871e5d//out/host/linux-x86/framework/core-junit-hostdex.jar \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-c4d890772a4baa583ef5caea03e8a2a351871e5d//out/host/linux-x86/framework/core-libart-hostdex.jar \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-c4d890772a4baa583ef5caea03e8a2a351871e5d//out/host/linux-x86/framework/core-oj-hostdex.jar \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-c4d890772a4baa583ef5caea03e8a2a351871e5d//out/host/linux-x86/framework/hamcrest-hostdex.jar \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-c4d890772a4baa583ef5caea03e8a2a351871e5d//out/host/linux-x86/framework/okhttp-hostdex.jar \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-c4d890772a4baa583ef5caea03e8a2a351871e5d//out/host/linux-x86/framework/wolfssljni-hostdex.jar install -D /home/buildozer/aports/testing/art_standalone/src/art_standalone-c4d890772a4baa583ef5caea03e8a2a351871e5d//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-c4d890772a4baa583ef5caea03e8a2a351871e5d//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-c4d890772a4baa583ef5caea03e8a2a351871e5d//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-c4d890772a4baa583ef5caea03e8a2a351871e5d//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: 376.6 MB >>> art_standalone-dbg*: Compressing data... >>> art_standalone-dbg*: Create checksum... >>> art_standalone-dbg*: Create art_standalone-dbg-0_git20241001-r0.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_git20241001-r0.apk >>> art_standalone*: Tracing dependencies... >>> ERROR: art_standalone*: libart-compiler.so: path not found wolfssl-jni so:libatomic.so.1 so:libbsd.so.0 so:libc.musl-aarch64.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: 28.4 MB >>> art_standalone*: Compressing data... >>> art_standalone*: Create checksum... >>> art_standalone*: Create art_standalone-0_git20241001-r0.apk >>> art_standalone: Build complete at Mon, 07 Oct 2024 20:50:21 +0000 elapsed time 0h 2m 2s >>> art_standalone: Cleaning up srcdir >>> art_standalone: Cleaning up pkgdir >>> art_standalone: Uninstalling dependencies... (1/100) Purging .makedepends-art_standalone (20241007.204820) (2/100) Purging bash (5.2.37-r0) Executing bash-5.2.37-r0.pre-deinstall (3/100) Purging vixl-dev (7.0.0-r0) (4/100) Purging vixl (7.0.0-r0) (5/100) Purging bionic_translation-dev (0_git20240525-r0) (6/100) Purging bionic_translation (0_git20240525-r0) (7/100) Purging expat-dev (2.6.3-r0) (8/100) Purging expat (2.6.3-r0) (9/100) Purging icu-dev (74.2-r0) (10/100) Purging libbsd-dev (0.12.2-r0) (11/100) Purging bsd-compat-headers (0.7.2-r6) (12/100) Purging libmd-dev (1.1.0-r0) (13/100) Purging libcap-dev (2.70-r0) (14/100) Purging linux-headers (6.6-r0) (15/100) Purging libunwind-dev (1.8.1-r0) (16/100) Purging libucontext-dev (1.3.2-r0) (17/100) Purging libucontext (1.3.2-r0) (18/100) Purging libunwind (1.8.1-r0) (19/100) Purging lz4-dev (1.10.0-r0) (20/100) Purging meson-pyc (1.5.2-r0) (21/100) Purging meson-vim (1.5.2-r0) (22/100) Purging meson (1.5.2-r0) (23/100) Purging samurai (1.2-r5) (24/100) Purging openjdk8-jdk (8.422.05-r0) (25/100) Purging openssl-dev (3.3.2-r2) (26/100) Purging python3-pyc (3.12.7-r0) (27/100) Purging python3-pycache-pyc0 (3.12.7-r0) (28/100) Purging pyc (3.12.7-r0) (29/100) Purging python3 (3.12.7-r0) (30/100) Purging valgrind-dev (3.23.0-r0) (31/100) Purging wolfssl-jni-dev (5.7.2-r0) (32/100) Purging wolfssl-jni (5.7.2-r0) (33/100) Purging xz-dev (5.6.3-r0) (34/100) Purging xz (5.6.3-r0) (35/100) Purging zip (3.0-r13) (36/100) Purging unzip (6.0-r15) (37/100) Purging zlib-dev (1.3.1-r2) (38/100) Purging gdbm (1.24-r0) (39/100) Purging icu (74.2-r0) (40/100) Purging icu-libs (74.2-r0) (41/100) Purging libpanelw (6.5_p20240601-r1) (42/100) Purging mesa-egl (24.2.4-r1) (43/100) Purging mesa-gbm (24.2.4-r1) (44/100) Purging mpdecimal (4.0.0-r0) (45/100) Purging openjdk8-jre (8.422.05-r0) (46/100) Purging font-dejavu (2.37-r5) (47/100) Purging fontconfig (2.15.0-r1) (48/100) Purging encodings (1.0.7-r1) (49/100) Purging mkfontscale (1.2.3-r1) (50/100) Purging openjdk8-jre-base (8.422.05-r0) (51/100) Purging openjdk8-jre-lib (8.422.05-r0) (52/100) Purging java-common (0.5-r0) (53/100) Purging java-cacerts (1.1-r0) Executing java-cacerts-1.1-r0.pre-deinstall (54/100) Purging p11-kit-trust (0.25.5-r2) (55/100) Purging ca-certificates (20240705-r0) Executing ca-certificates-20240705-r0.post-deinstall (56/100) Purging nss (3.105-r0) (57/100) Purging p11-kit (0.25.5-r2) (58/100) Purging pcsc-lite-libs (2.2.3-r1) (59/100) Purging sqlite-libs (3.46.1-r0) (60/100) Purging wayland-libs-client (1.23.1-r0) (61/100) Purging wayland-libs-server (1.23.1-r0) (62/100) Purging alsa-lib (1.2.12-r0) (63/100) Purging freetype (2.13.3-r0) (64/100) Purging giflib (5.2.2-r0) (65/100) Purging mesa (24.2.4-r1) (66/100) Purging libdrm (2.4.123-r1) (67/100) Purging libpciaccess (0.18.1-r0) (68/100) Purging hwdata-pci (0.388-r0) (69/100) Purging icu-data-en (74.2-r0) (70/100) Purging krb5-libs (1.21.3-r0) (71/100) Purging krb5-conf (1.0-r2) (72/100) Purging keyutils-libs (1.6.3-r3) (73/100) Purging lcms2 (2.16-r0) (74/100) Purging libxi (1.8.2-r0) (75/100) Purging libxtst (1.2.5-r0) (76/100) Purging libxext (1.3.6-r2) (77/100) Purging libxrender (0.9.11-r5) (78/100) Purging libxcomposite (0.4.6-r5) (79/100) Purging libx11 (1.8.10-r0) (80/100) Purging libxcb (1.16.1-r0) (81/100) Purging libxdmcp (1.1.5-r1) (82/100) Purging libbsd (0.12.2-r0) (83/100) Purging libbz2 (1.0.8-r6) (84/100) Purging libcom_err (1.47.1-r1) (85/100) Purging libelf (0.191-r0) (86/100) Purging llvm18-libs (18.1.8-r0) (87/100) Purging libffi (3.4.6-r0) (88/100) Purging libfontenc (1.1.8-r0) (89/100) Purging libjpeg-turbo (3.0.4-r0) (90/100) Purging liblksctp (1.0.19-r5) (91/100) Purging libmd (1.1.0-r0) (92/100) Purging libpng (1.6.44-r0) (93/100) Purging libtasn1 (4.19.0-r2) (94/100) Purging libverto (0.3.2-r2) (95/100) Purging libxau (1.0.11-r4) (96/100) Purging libxml2 (2.13.4-r0) (97/100) Purging libxshmfence (1.3.2-r6) (98/100) Purging mesa-glapi (24.2.4-r1) (99/100) Purging nspr (4.35-r4) (100/100) Purging xz-libs (5.6.3-r0) Executing busybox-1.36.1-r32.trigger OK: 440 MiB in 108 packages >>> art_standalone: Updating the testing/aarch64 repository index... >>> art_standalone: Signing the index...