fix build warnings

This commit is contained in:
2026-09-11 20:45:19 -06:00
parent 8a7ef86ad2
commit 86e06feecc
2 changed files with 1 additions and 14 deletions

View File

@@ -26,19 +26,6 @@ if system == 'linux'
sysinfo_includes += 'unix'
sysinfo_sources += 'unix/modern-backend.c'
sysinfo_test_deps = [libgio_dep]
sysinfo_test_cargs = []
if libpci.found()
sysinfo_test_deps += libpci
sysinfo_test_cargs += '-DHAVE_LIBPCI'
endif
sysinfo_backend_tests = executable('sysinfo_backend_tests',
['tests/test-linux-backend.c', 'format.c'],
dependencies: sysinfo_test_deps,
c_args: sysinfo_test_cargs,
)
test('Sysinfo Backend Tests', sysinfo_backend_tests, protocol: 'tap')
elif system == 'freebsd' or system == 'gnu' or system.startswith('gnu/')
sysinfo_includes += ['shared', 'unix']
sysinfo_sources += [

View File

@@ -225,7 +225,7 @@ read_os_pretty_name (void)
}
/* Keep the plugin buildable with the project's GLib 2.36 minimum. */
#if GLIB_CHECK_VERSION(2, 64, 0)
#if GLIB_CHECK_VERSION(2, 64, 0) && GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_64
if (!pretty)
{
pretty = g_get_os_info (G_OS_INFO_KEY_PRETTY_NAME);