mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-09-12 02:52:28 +00:00
fix build warnings
This commit is contained in:
@@ -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 += [
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user