From 86e06feeccac0796e64b804b40753b73734fdb5f Mon Sep 17 00:00:00 2001 From: deepend Date: Fri, 11 Sep 2026 20:45:19 -0600 Subject: [PATCH] fix build warnings --- plugins/sysinfo/meson.build | 13 ------------- plugins/sysinfo/unix/modern-backend.c | 2 +- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/plugins/sysinfo/meson.build b/plugins/sysinfo/meson.build index 2e31c14e..f64be5e2 100644 --- a/plugins/sysinfo/meson.build +++ b/plugins/sysinfo/meson.build @@ -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 += [ diff --git a/plugins/sysinfo/unix/modern-backend.c b/plugins/sysinfo/unix/modern-backend.c index 0840a8dd..da804ddb 100644 --- a/plugins/sysinfo/unix/modern-backend.c +++ b/plugins/sysinfo/unix/modern-backend.c @@ -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);