build: Remove G_GNUC_CONST from *_get_type declarations
authorlzwind <liuzheng@uniontech.com>
Wed, 5 Aug 2026 01:13:34 +0000 (09:13 +0800)
committerlzwind <liuzheng@uniontech.com>
Wed, 5 Aug 2026 01:13:34 +0000 (09:13 +0800)
commite87513c56081deb8b277fd2b467165c8e7f5adbe
tree1795af9cd94192c8e56b28930908b5443c1dd727
parent91a712a248b921e8101a50c289352d3e6ebbfaa3
build: Remove G_GNUC_CONST from *_get_type declarations

GLib removed G_GNUC_CONST from its *_get_type declarations to avoid
miscompilations with GCC trunk, and recommends downstream projects do
the same. See: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/5223

Closes #3612
23 files changed:
src/libostree/ostree-async-progress.h
src/libostree/ostree-bootconfig-parser.h
src/libostree/ostree-bootloader-aboot.h
src/libostree/ostree-bootloader-grub2.h
src/libostree/ostree-bootloader-syslinux.h
src/libostree/ostree-bootloader-uboot.h
src/libostree/ostree-bootloader-zipl.h
src/libostree/ostree-bootloader.h
src/libostree/ostree-chain-input-stream.h
src/libostree/ostree-checksum-input-stream.h
src/libostree/ostree-deployment.h
src/libostree/ostree-fetcher.h
src/libostree/ostree-libarchive-input-stream.h
src/libostree/ostree-lzma-compressor.h
src/libostree/ostree-lzma-decompressor.h
src/libostree/ostree-metalink.h
src/libostree/ostree-mutable-tree.h
src/libostree/ostree-remote.h
src/libostree/ostree-repo-file-enumerator.h
src/libostree/ostree-repo-file.h
src/libostree/ostree-repo-private.h
src/libostree/ostree-tls-cert-interaction-private.h
src/libotutil/ot-checksum-instream.h