mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-09-06 16:56:00 +00:00
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:
parent
56cf3196a2
commit
5183e1d4b4
|
@ -46,6 +46,7 @@ if cc.get_id() == 'gcc'
|
||||||
'-Wsign-compare',
|
'-Wsign-compare',
|
||||||
'-Wimplicit-fallthrough',
|
'-Wimplicit-fallthrough',
|
||||||
'-Wpointer-arith',
|
'-Wpointer-arith',
|
||||||
|
'-Wformat-security',
|
||||||
# '-DFASTPATH',
|
# '-DFASTPATH',
|
||||||
language : 'c')
|
language : 'c')
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -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_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_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->monitor = monitor;
|
||||||
node->object = obj;
|
node->object = obj;
|
||||||
|
|
Loading…
Reference in a new issue