bluez-monitor: fix usage of pw_properties_setf without a format string

Otherwise compilation will fail with certain -Wformat-security flags
Add the flag to the warnings.
This commit is contained in:
George Kiagiadakis 2019-09-26 17:26:23 +02:00 committed by Wim Taymans
parent 56cf3196a2
commit 5183e1d4b4
2 changed files with 2 additions and 1 deletions

View File

@ -46,6 +46,7 @@ if cc.get_id() == 'gcc'
'-Wsign-compare',
'-Wimplicit-fallthrough',
'-Wpointer-arith',
'-Wformat-security',
# '-DFASTPATH',
language : 'c')
endif

View File

@ -123,7 +123,7 @@ static struct bluez5_node *bluez5_create_node(struct bluez5_object *obj, uint32_
pw_properties_setf(node->props, PW_KEY_NODE_NAME, "%s.%s", info->factory_name, str);
pw_properties_set(node->props, PW_KEY_NODE_DESCRIPTION, str);
pw_properties_setf(node->props, "factory.name", info->factory_name);
pw_properties_set(node->props, "factory.name", info->factory_name);
node->monitor = monitor;
node->object = obj;