Files
Khem Raj 154f4c9c21 libosinfo: Do not error on clang's -Wunused-but-set-global
clang 23 added -Wunused-but-set-global to the -Wunused warning group, so
the -Werror that meson.build adds for git builds turns it into a hard
error:

  osinfo/osinfo_avatar_format.c:24:1: error: variable
    'osinfo_avatar_format_parent_class' set but not used
    [-Werror,-Wunused-but-set-global]

Add -Wno-error=unused-but-set-global to libosinfo_check_cflags so the
warning stays visible but is not fatal. The flag is placed in the list
that meson.build filters through compiler.has_argument(), so it is
dropped on compilers that do not know the warning group

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-09-07 19:06:19 -07:00
..