if supported_cc_flags.contains('-Wlogical-op')
# Broken in 6.0 and later
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69602
- w_logical_op_args = ['-O2', '-Wlogical-op', '-Werror']
+ w_logical_op_args = [ '-O2', '-Wlogical-op', '-Werror' ]
w_logical_op_code = '''
#define TEST1 1
#define TEST2 TEST1
endif
# Check whether clang gives bogus warning for -Wdouble-promotion.
- w_double_promotion_args = ['-O2', '-Wdouble-promotion', '-Werror']
+ w_double_promotion_args = [ '-O2', '-Wdouble-promotion', '-Werror' ]
w_double_promotion_code = '''
#include <math.h>
}
'''
if cc.compiles(w_double_promotion_code, args: w_double_promotion_args, name: '-Wdouble-promotion')
- supported_cc_flags += ['-Wdouble-promotion']
+ supported_cc_flags += [ '-Wdouble-promotion' ]
endif
# Clang complains about unused static inline functions which are common
# with G_DEFINE_AUTOPTR_CLEANUP_FUNC.
- w_unused_function_args = ['-Wunused-function', '-Werror']
+ w_unused_function_args = [ '-Wunused-function', '-Werror' ]
w_unused_function_code = '''
static inline void foo(void) {}
'''
# -Wunused-function is implied by -Wall, we must turn it off explicitly.
if not cc.compiles(w_unused_function_code, args: w_unused_function_args)
- supported_cc_flags += ['-Wno-unused-function']
+ supported_cc_flags += [ '-Wno-unused-function' ]
endif
endif
]
required_programs_groups = [
- {'name':'rpcgen', 'prog':['rpcgen', 'portable-rpcgen']},
- {'name':'rst2html', 'prog':['rst2html5', 'rst2html5.py', 'rst2html5-3']},
- {'name':'rst2man', 'prog':['rst2man', 'rst2man.py', 'rst2man-3']},
+ { 'name': 'rpcgen', 'prog': [ 'rpcgen', 'portable-rpcgen' ] },
+ { 'name': 'rst2html', 'prog': [ 'rst2html5', 'rst2html5.py', 'rst2html5-3' ] },
+ { 'name': 'rst2man', 'prog': [ 'rst2man', 'rst2man.py', 'rst2man-3' ] },
]
if host_machine.system() == 'freebsd'
libxml_version = '2.9.1'
libxml_dep = dependency('libxml-2.0', version: '>=' + libxml_version)
-libm_dep = cc.find_library('m', required : false)
+libm_dep = cc.find_library('m', required: false)
netcf_version = '0.1.8'
netcf_dep = dependency('netcf', version: '>=' + netcf_version, required: get_option('netcf'))
endif
conf.set_quoted('QEMU_MODDIR', qemu_moddir)
- if host_machine.system() in ['freebsd', 'darwin']
+ if host_machine.system() in [ 'freebsd', 'darwin' ]
default_qemu_user = 'root'
default_qemu_group = 'wheel'
else
if not get_option('storage_zfs').disabled()
zfs_enable = true
- foreach name : ['zfs', 'zpool']
+ foreach name : [ 'zfs', 'zpool' ]
set_variable(
'@0@_prog'.format(name),
find_program(name, required: get_option('storage_zfs'), dirs: libvirt_sbin_path)
if zfs_enable
use_storage = true
conf.set('WITH_STORAGE_ZFS', 1)
- foreach name : ['zfs', 'zpool']
+ foreach name : [ 'zfs', 'zpool' ]
conf.set_quoted(name.to_upper(), get_variable('@0@_prog'.format(name)).path())
endforeach
endif
virt_conf_files += qemu_lockd_conf
virt_test_aug_files += {
'name': 'test_libvirt_lockd.aug',
- 'aug' : files('test_libvirt_lockd.aug.in'),
+ 'aug': files('test_libvirt_lockd.aug.in'),
'conf': qemu_lockd_conf,
'test_name': 'libvirt_lockd',
'test_srcdir': meson.current_source_dir(),
virt_conf_files += qemu_sanlock_conf
virt_test_aug_files += {
'name': 'test_libvirt_sanlock.aug',
- 'aug' : files('test_libvirt_sanlock.aug.in'),
+ 'aug': files('test_libvirt_sanlock.aug.in'),
'conf': qemu_sanlock_conf,
'test_name': 'libvirt_sanlock',
'test_srcdir': meson.current_source_dir(),