# kdesrc-build running: 'ninja' '-j' '8' # from directory: /opt/kde/build/kpipewire [1/113] Generating ts... [2/113] Generating mo... [3/113] Automatic MOC for target KPipeWire [4/113] Automatic MOC for target mediamonitortest [5/113] Building CXX object src/CMakeFiles/KPipeWire.dir/logging.cpp.o [6/113] Building CXX object src/CMakeFiles/KPipeWire.dir/KPipeWire_autogen/mocs_compilation.cpp.o [7/113] Building CXX object src/monitors/autotests/CMakeFiles/mediamonitortest.dir/mediamonitortest_autogen/mocs_compilation.cpp.o [8/113] Building CXX object src/CMakeFiles/KPipeWire.dir/vaapiutils.cpp.o [9/113] Building CXX object src/CMakeFiles/KPipeWire.dir/pwhelpers.cpp.o [10/113] Building CXX object src/CMakeFiles/KPipeWire.dir/pipewirecore.cpp.o /opt/kde/src/kpipewire/src/pipewirecore.cpp:31:1: warning: missing initializer for member 'pw_core_events::bound_props' [-Wmissing-field-initializers] 31 | }; | ^ cc1plus: note: unrecognized command-line option '-Wno-c99-extensions' may have been intended to silence earlier diagnostics cc1plus: note: unrecognized command-line option '-Wno-gnu-statement-expression-from-macro-expansion' may have been intended to silence earlier diagnostics [11/113] Building CXX object src/CMakeFiles/KPipeWire.dir/glhelpers.cpp.o [12/113] Building CXX object src/CMakeFiles/KPipeWire.dir/pipewiresourceitem.cpp.o [13/113] Building CXX object src/CMakeFiles/KPipeWire.dir/logging_vaapi.cpp.o [14/113] Building CXX object src/CMakeFiles/KPipeWire.dir/pipewiresourcestream.cpp.o [15/113] Linking CXX shared library bin/libKPipeWire.so.6.2.80 [16/113] Creating library symlink bin/libKPipeWire.so.6 bin/libKPipeWire.so [17/113] Generating wayland-zkde-screencast-unstable-v1-protocol.c [18/113] Generating wayland-zkde-screencast-unstable-v1-client-protocol.h [19/113] Generating qwayland-zkde-screencast-unstable-v1.cpp Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8. Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead. If this causes problems, reconfigure your locale. See the locale(1) manual for more information. [20/113] Generating qwayland-zkde-screencast-unstable-v1.h Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8. Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead. If this causes problems, reconfigure your locale. See the locale(1) manual for more information. [21/113] Generating xdp_dbus_screencast_interface.cpp, xdp_dbus_screencast_interface.h Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8. Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead. If this causes problems, reconfigure your locale. See the locale(1) manual for more information. [22/113] Generating moc_xdp_dbus_screencast_interface.cpp [23/113] Automatic MOC for target KPipeWireDmaBuf [24/113] Automatic MOC for target webcamtest [25/113] Building CXX object src/CMakeFiles/KPipeWireDmaBuf.dir/KPipeWireDmaBuf_autogen/mocs_compilation.cpp.o [26/113] Automatic RCC for webcamtest.qrc [27/113] Building CXX object tests/CMakeFiles/webcamtest.dir/webcamtest_autogen/mocs_compilation.cpp.o [28/113] Automatic MOC for target xdp-recordme [29/113] Automatic RCC for recordme.qrc [30/113] Automatic MOC for target KPipeWireMonitorDeclarative [31/113] Running AUTOMOC file extraction for target KPipeWireMonitorDeclarative [32/113] Building CXX object tests/CMakeFiles/xdp-recordme.dir/xdp-recordme_autogen/mocs_compilation.cpp.o [33/113] Running rcc for resource qmake_org_kde_pipewire_monitor Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8. Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead. If this causes problems, reconfigure your locale. See the locale(1) manual for more information. [34/113] Running moc --collect-json for target KPipeWireMonitorDeclarative [35/113] Automatic MOC for target PipeWireScreencastingTest [36/113] Automatic QML type registration for target KPipeWireMonitorDeclarative Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8. Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead. If this causes problems, reconfigure your locale. See the locale(1) manual for more information. [37/113] Building CXX object tests/CMakeFiles/PipeWireScreencastingTest.dir/PipeWireScreencastingTest_autogen/mocs_compilation.cpp.o [38/113] Automatic MOC for target KPipeWireDeclarative [39/113] Building C object tests/CMakeFiles/PipeWireScreencastingTest.dir/wayland-zkde-screencast-unstable-v1-protocol.c.o cc1: warning: command-line option '-Wno-zero-as-null-pointer-constant' is valid for C++/ObjC++ but not for C cc1: note: unrecognized command-line option '-Wno-c99-extensions' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-gnu-statement-expression-from-macro-expansion' may have been intended to silence earlier diagnostics [40/113] Building CXX object src/monitors/autotests/CMakeFiles/mediamonitortest.dir/mediamonitortest.cpp.o [41/113] Running AUTOMOC file extraction for target KPipeWireDeclarative [42/113] Running moc --collect-json for target KPipeWireDeclarative [43/113] Automatic QML type registration for target KPipeWireDeclarative Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8. Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead. If this causes problems, reconfigure your locale. See the locale(1) manual for more information. [44/113] Running rcc for resource qmake_org_kde_pipewire Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8. Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead. If this causes problems, reconfigure your locale. See the locale(1) manual for more information. [45/113] Building CXX object tests/CMakeFiles/PipeWireScreencastingTest.dir/qwayland-zkde-screencast-unstable-v1.cpp.o [46/113] Building CXX object src/CMakeFiles/KPipeWireDmaBuf.dir/logging_dmabuf.cpp.o [47/113] Building CXX object tests/CMakeFiles/xdp-recordme.dir/xdp-recordme_autogen/EWIEGA46WW/qrc_recordme.cpp.o [48/113] Building CXX object tests/CMakeFiles/webcamtest.dir/webcamtest_autogen/EWIEGA46WW/qrc_webcamtest.cpp.o [49/113] Building CXX object src/CMakeFiles/KPipeWireDeclarative.dir/KPipeWireDeclarative_autogen/mocs_compilation.cpp.o [50/113] Building CXX object tests/CMakeFiles/webcamtest.dir/webcamtest.cpp.o [51/113] Building CXX object src/CMakeFiles/KPipeWireDeclarative.dir/.qt/rcc/qrc_qmake_org_kde_pipewire.cpp.o [52/113] Building CXX object tests/CMakeFiles/PipeWireScreencastingTest.dir/screencastingrequest.cpp.o [53/113] Building CXX object src/monitors/CMakeFiles/KPipeWireMonitorDeclarative.dir/KPipeWireMonitorDeclarative_autogen/mocs_compilation.cpp.o [54/113] Building CXX object tests/CMakeFiles/xdp-recordme.dir/xdp-main.cpp.o [55/113] Building CXX object src/CMakeFiles/KPipeWireDmaBuf.dir/dmabufhandler.cpp.o In file included from /usr/include/spa-0.2/spa/support/plugin.h:13, from /usr/include/pipewire-0.3/pipewire/pipewire.h:12, from /opt/kde/src/kpipewire/src/pipewiresourcestream.h:20, from /opt/kde/src/kpipewire/src/dmabufhandler.h:11, from /opt/kde/src/kpipewire/src/dmabufhandler.cpp:4: /usr/include/spa-0.2/spa/utils/dict.h: In function 'const spa_dict_item* spa_dict_lookup_item(const spa_dict*, const char*)': /usr/include/spa-0.2/spa/utils/dict.h:31:80: warning: ISO C++ forbids compound-literals [-Wpedantic] 31 | #define SPA_DICT_ITEM_INIT(key,value) ((struct spa_dict_item) { (key), (value) }) | ^ /usr/include/spa-0.2/spa/utils/dict.h:70:42: note: in expansion of macro 'SPA_DICT_ITEM_INIT' 70 | struct spa_dict_item k = SPA_DICT_ITEM_INIT(key, NULL); | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/spa-0.2/spa/support/plugin.h:12: /usr/include/pipewire-0.3/pipewire/array.h: In function 'int pw_array_ensure_size(pw_array*, size_t)': /usr/include/spa-0.2/spa/utils/defs.h:271:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 271 | ({ \ | ^ /usr/include/pipewire-0.3/pipewire/array.h:115:25: note: in expansion of macro 'SPA_ROUND_UP' 115 | alloc = SPA_ROUND_UP(need, arr->extend); | ^~~~~~~~~~~~ In file included from /usr/include/spa-0.2/spa/utils/hook.h:13, from /usr/include/pipewire-0.3/pipewire/proxy.h:12, from /usr/include/pipewire-0.3/pipewire/client.h:15, from /usr/include/pipewire-0.3/pipewire/pipewire.h:15: /usr/include/spa-0.2/spa/utils/list.h: In function 'void spa_list_init(spa_list*)': /usr/include/spa-0.2/spa/utils/list.h:27:64: warning: ISO C++ forbids compound-literals [-Wpedantic] 27 | #define SPA_LIST_INIT(list) ((struct spa_list){ (list), (list) }) | ^ /usr/include/spa-0.2/spa/utils/list.h:31:17: note: in expansion of macro 'SPA_LIST_INIT' 31 | *list = SPA_LIST_INIT(list); | ^~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/hook.h: In function 'void spa_hook_list_append(spa_hook_list*, spa_hook*, const void*, void*)': /usr/include/spa-0.2/spa/utils/hook.h:125:86: warning: ISO C++ forbids compound-literals [-Wpedantic] 125 | #define SPA_CALLBACKS_INIT(_funcs,_data) ((struct spa_callbacks){ (_funcs), (_data), }) | ^ /usr/include/spa-0.2/spa/utils/hook.h:367:20: note: in expansion of macro 'SPA_CALLBACKS_INIT' 367 | hook->cb = SPA_CALLBACKS_INIT(funcs, data); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/hook.h: In function 'void spa_hook_list_prepend(spa_hook_list*, spa_hook*, const void*, void*)': /usr/include/spa-0.2/spa/utils/hook.h:125:86: warning: ISO C++ forbids compound-literals [-Wpedantic] 125 | #define SPA_CALLBACKS_INIT(_funcs,_data) ((struct spa_callbacks){ (_funcs), (_data), }) | ^ /usr/include/spa-0.2/spa/utils/hook.h:377:20: note: in expansion of macro 'SPA_CALLBACKS_INIT' 377 | hook->cb = SPA_CALLBACKS_INIT(funcs, data); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/string.h: In function 'int spa_strbuf_append(spa_strbuf*, const char*, ...)': /usr/include/spa-0.2/spa/utils/defs.h:147:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 147 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/string.h:384:29: note: in expansion of macro 'SPA_MIN' 384 | buf->pos += SPA_MIN(remain, (size_t)written); | ^~~~~~~ In file included from /usr/include/pipewire-0.3/pipewire/context.h:48, from /usr/include/pipewire-0.3/pipewire/protocol.h:26, from /usr/include/pipewire-0.3/pipewire/proxy.h:90: /usr/include/pipewire-0.3/pipewire/core.h: In function 'int pw_core_errorv(pw_core*, uint32_t, int, int, const char*, __va_list_tag*)': /usr/include/pipewire-0.3/pipewire/core.h:338:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 338 | ({ \ | ^ /usr/include/pipewire-0.3/pipewire/core.h:350:41: note: in expansion of macro 'pw_core_method' 350 | #define pw_core_error(c,...) pw_core_method(c,error,0,__VA_ARGS__) | ^~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:361:16: note: in expansion of macro 'pw_core_error' 361 | return pw_core_error(core, id, seq, res, buffer); | ^~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:340:9: note: in expansion of macro 'spa_interface_call_res' 340 | spa_interface_call_res((struct spa_interface*)o, \ | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:350:41: note: in expansion of macro 'pw_core_method' 350 | #define pw_core_error(c,...) pw_core_method(c,error,0,__VA_ARGS__) | ^~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:361:16: note: in expansion of macro 'pw_core_error' 361 | return pw_core_error(core, id, seq, res, buffer); | ^~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h: In function 'pw_registry* pw_core_get_registry(pw_core*, uint32_t, size_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:381:9: note: in expansion of macro 'spa_interface_call_res' 381 | spa_interface_call_res((struct spa_interface*)core, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h: In function 'void* pw_core_create_object(pw_core*, const char*, const char*, uint32_t, const spa_dict*, size_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:396:9: note: in expansion of macro 'spa_interface_call_res' 396 | spa_interface_call_res((struct spa_interface*)core, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h: In function 'void* pw_registry_bind(pw_registry*, uint32_t, const char*, uint32_t, size_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:537:9: note: in expansion of macro 'spa_interface_call_res' 537 | spa_interface_call_res((struct spa_interface*)registry, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/log.h: In function 'void spa_log_topic_init(spa_log*, spa_log_topic*)': /usr/include/spa-0.2/spa/utils/hook.h:157:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 157 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:230:9: note: in expansion of macro 'spa_callbacks_call' 230 | spa_callbacks_call(&(iface)->cb,method_type,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/log.h:221:9: note: in expansion of macro 'spa_interface_call' 221 | spa_interface_call(&log->iface, struct spa_log_methods, topic_init, 1, topic); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'spa_thread* spa_thread_utils_create(spa_thread_utils*, const spa_dict*, void* (*)(void*), void*)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:65:9: note: in expansion of macro 'spa_interface_call_res' 65 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_join(spa_thread_utils*, spa_thread*, void**)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:77:9: note: in expansion of macro 'spa_interface_call_res' 77 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_get_rt_range(spa_thread_utils*, const spa_dict*, int*, int*)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:89:9: note: in expansion of macro 'spa_interface_call_res' 89 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_acquire_rt(spa_thread_utils*, spa_thread*, int)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:101:9: note: in expansion of macro 'spa_interface_call_res' 101 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_drop_rt(spa_thread_utils*, spa_thread*)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:113:9: note: in expansion of macro 'spa_interface_call_res' 113 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/iter.h: In function 'uint32_t spa_pod_copy_array(const spa_pod*, uint32_t, void*, uint32_t)': /usr/include/spa-0.2/spa/utils/defs.h:147:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 147 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/iter.h:337:20: note: in expansion of macro 'SPA_MIN' 337 | n_values = SPA_MIN(n_values, max_values); | ^~~~~~~ /usr/include/spa-0.2/spa/pod/iter.h: In function 'spa_pod* spa_pod_get_values(const spa_pod*, uint32_t*, uint32_t*)': /usr/include/spa-0.2/spa/utils/defs.h:147:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 147 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/iter.h:353:35: note: in expansion of macro 'SPA_MIN' 353 | *n_vals = SPA_MIN(1u, SPA_POD_CHOICE_N_VALUES(pod)); | ^~~~~~~ In file included from /usr/include/spa-0.2/spa/param/format-utils.h:18, from /opt/kde/src/kpipewire/src/pipewiresourcestream.h:21: /usr/include/spa-0.2/spa/pod/parser.h: In function 'void spa_pod_parser_init(spa_pod_parser*, const void*, uint32_t)': /usr/include/spa-0.2/spa/pod/parser.h:36:94: warning: ISO C++ forbids compound-literals [-Wpedantic] 36 | #define SPA_POD_PARSER_INIT(buffer,size) ((struct spa_pod_parser){ (buffer), (size), 0, {0} }) | ^ /usr/include/spa-0.2/spa/pod/parser.h:41:19: note: in expansion of macro 'SPA_POD_PARSER_INIT' 41 | *parser = SPA_POD_PARSER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:36:94: warning: missing initializer for member 'spa_pod_parser_state::flags' [-Wmissing-field-initializers] 36 | #define SPA_POD_PARSER_INIT(buffer,size) ((struct spa_pod_parser){ (buffer), (size), 0, {0} }) | ^ /usr/include/spa-0.2/spa/pod/parser.h:41:19: note: in expansion of macro 'SPA_POD_PARSER_INIT' 41 | *parser = SPA_POD_PARSER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:36:94: warning: missing initializer for member 'spa_pod_parser_state::frame' [-Wmissing-field-initializers] 36 | #define SPA_POD_PARSER_INIT(buffer,size) ((struct spa_pod_parser){ (buffer), (size), 0, {0} }) | ^ /usr/include/spa-0.2/spa/pod/parser.h:41:19: note: in expansion of macro 'SPA_POD_PARSER_INIT' 41 | *parser = SPA_POD_PARSER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/format-utils.h: In function 'int spa_format_parse(const spa_pod*, uint32_t*, uint32_t*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/format-utils.h:24:16: note: in expansion of macro 'spa_pod_parse_object' 24 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/format-utils.h:24:16: note: in expansion of macro 'spa_pod_parse_object' 24 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'void spa_pod_builder_set_callbacks(spa_pod_builder*, const spa_pod_builder_callbacks*, void*)': /usr/include/spa-0.2/spa/utils/hook.h:125:86: warning: ISO C++ forbids compound-literals [-Wpedantic] 125 | #define SPA_CALLBACKS_INIT(_funcs,_data) ((struct spa_callbacks){ (_funcs), (_data), }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:64:30: note: in expansion of macro 'SPA_CALLBACKS_INIT' 64 | builder->callbacks = SPA_CALLBACKS_INIT(callbacks, data); | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/spa-0.2/spa/param/video/raw-utils.h:18, from /usr/include/spa-0.2/spa/param/video/format-utils.h:14, from /opt/kde/src/kpipewire/src/pipewiresourcestream.h:23: /usr/include/spa-0.2/spa/pod/builder.h: In function 'void spa_pod_builder_init(spa_pod_builder*, void*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: ISO C++ forbids compound-literals [-Wpedantic] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: missing initializer for member 'spa_pod_builder_state::flags' [-Wmissing-field-initializers] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: missing initializer for member 'spa_pod_builder_state::frame' [-Wmissing-field-initializers] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: missing initializer for member 'spa_callbacks::data' [-Wmissing-field-initializers] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_raw(spa_pod_builder*, const void*, uint32_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/builder.h:127:25: note: in expansion of macro 'spa_callbacks_call_res' 127 | spa_callbacks_call_res(&builder->callbacks, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_primitive(spa_pod_builder*, const spa_pod*)': /usr/include/spa-0.2/spa/utils/defs.h:83:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 83 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/builder.h:188:17: note: in expansion of macro 'SPA_FLAG_CLEAR' 188 | SPA_FLAG_CLEAR(builder->state.flags, SPA_POD_BUILDER_FLAG_FIRST); | ^~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_none(spa_pod_builder*)': /usr/include/spa-0.2/spa/pod/builder.h:197:68: warning: ISO C++ forbids compound-literals [-Wpedantic] 197 | #define SPA_POD_INIT(size,type) ((struct spa_pod) { (size), (type) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:199:29: note: in expansion of macro 'SPA_POD_INIT' 199 | #define SPA_POD_INIT_None() SPA_POD_INIT(0, SPA_TYPE_None) | ^~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:203:34: note: in expansion of macro 'SPA_POD_INIT_None' 203 | const struct spa_pod p = SPA_POD_INIT_None(); | ^~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_child(spa_pod_builder*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:197:68: warning: ISO C++ forbids compound-literals [-Wpedantic] 197 | #define SPA_POD_INIT(size,type) ((struct spa_pod) { (size), (type) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:209:34: note: in expansion of macro 'SPA_POD_INIT' 209 | const struct spa_pod p = SPA_POD_INIT(size,type); | ^~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/defs.h:83:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 83 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/builder.h:210:9: note: in expansion of macro 'SPA_FLAG_CLEAR' 210 | SPA_FLAG_CLEAR(builder->state.flags, SPA_POD_BUILDER_FLAG_FIRST); | ^~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_bool(spa_pod_builder*, bool)': /usr/include/spa-0.2/spa/pod/builder.h:214:110: warning: ISO C++ forbids compound-literals [-Wpedantic] 214 | #define SPA_POD_INIT_Bool(val) ((struct spa_pod_bool){ { sizeof(uint32_t), SPA_TYPE_Bool }, (val) ? 1 : 0, 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:218:39: note: in expansion of macro 'SPA_POD_INIT_Bool' 218 | const struct spa_pod_bool p = SPA_POD_INIT_Bool(val); | ^~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_id(spa_pod_builder*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:222:96: warning: ISO C++ forbids compound-literals [-Wpedantic] 222 | #define SPA_POD_INIT_Id(val) ((struct spa_pod_id){ { sizeof(uint32_t), SPA_TYPE_Id }, (val), 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:226:37: note: in expansion of macro 'SPA_POD_INIT_Id' 226 | const struct spa_pod_id p = SPA_POD_INIT_Id(val); | ^~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_int(spa_pod_builder*, int32_t)': /usr/include/spa-0.2/spa/pod/builder.h:230:98: warning: ISO C++ forbids compound-literals [-Wpedantic] 230 | #define SPA_POD_INIT_Int(val) ((struct spa_pod_int){ { sizeof(int32_t), SPA_TYPE_Int }, (val), 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:234:38: note: in expansion of macro 'SPA_POD_INIT_Int' 234 | const struct spa_pod_int p = SPA_POD_INIT_Int(val); | ^~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_long(spa_pod_builder*, int64_t)': /usr/include/spa-0.2/spa/pod/builder.h:238:98: warning: ISO C++ forbids compound-literals [-Wpedantic] 238 | #define SPA_POD_INIT_Long(val) ((struct spa_pod_long){ { sizeof(int64_t), SPA_TYPE_Long }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:242:39: note: in expansion of macro 'SPA_POD_INIT_Long' 242 | const struct spa_pod_long p = SPA_POD_INIT_Long(val); | ^~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_float(spa_pod_builder*, float)': /usr/include/spa-0.2/spa/pod/builder.h:246:102: warning: ISO C++ forbids compound-literals [-Wpedantic] 246 | #define SPA_POD_INIT_Float(val) ((struct spa_pod_float){ { sizeof(float), SPA_TYPE_Float }, (val), 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:250:40: note: in expansion of macro 'SPA_POD_INIT_Float' 250 | const struct spa_pod_float p = SPA_POD_INIT_Float(val); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_double(spa_pod_builder*, double)': /usr/include/spa-0.2/spa/pod/builder.h:254:103: warning: ISO C++ forbids compound-literals [-Wpedantic] 254 | #define SPA_POD_INIT_Double(val) ((struct spa_pod_double){ { sizeof(double), SPA_TYPE_Double }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:258:41: note: in expansion of macro 'SPA_POD_INIT_Double' 258 | const struct spa_pod_double p = SPA_POD_INIT_Double(val); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_string_len(spa_pod_builder*, const char*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:262:87: warning: ISO C++ forbids compound-literals [-Wpedantic] 262 | #define SPA_POD_INIT_String(len) ((struct spa_pod_string){ { (len), SPA_TYPE_String } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:279:41: note: in expansion of macro 'SPA_POD_INIT_String' 279 | const struct spa_pod_string p = SPA_POD_INIT_String(len+1); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_bytes(spa_pod_builder*, const void*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:292:84: warning: ISO C++ forbids compound-literals [-Wpedantic] 292 | #define SPA_POD_INIT_Bytes(len) ((struct spa_pod_bytes){ { (len), SPA_TYPE_Bytes } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:297:40: note: in expansion of macro 'SPA_POD_INIT_Bytes' 297 | const struct spa_pod_bytes p = SPA_POD_INIT_Bytes(len); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_pointer(spa_pod_builder*, uint32_t, const void*)': /usr/include/spa-0.2/spa/pod/builder.h:312:151: warning: ISO C++ forbids compound-literals [-Wpedantic] 312 | #define SPA_POD_INIT_Pointer(type,value) ((struct spa_pod_pointer){ { sizeof(struct spa_pod_pointer_body), SPA_TYPE_Pointer }, { (type), 0, (value) } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:317:42: note: in expansion of macro 'SPA_POD_INIT_Pointer' 317 | const struct spa_pod_pointer p = SPA_POD_INIT_Pointer(type, val); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_fd(spa_pod_builder*, int64_t)': /usr/include/spa-0.2/spa/pod/builder.h:321:90: warning: ISO C++ forbids compound-literals [-Wpedantic] 321 | #define SPA_POD_INIT_Fd(fd) ((struct spa_pod_fd){ { sizeof(int64_t), SPA_TYPE_Fd }, (fd) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:325:37: note: in expansion of macro 'SPA_POD_INIT_Fd' 325 | const struct spa_pod_fd p = SPA_POD_INIT_Fd(fd); | ^~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_rectangle(spa_pod_builder*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/utils/defs.h:100:80: warning: ISO C++ forbids compound-literals [-Wpedantic] 100 | #define SPA_RECTANGLE(width,height) ((struct spa_rectangle){ (width), (height) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:329:121: note: in definition of macro 'SPA_POD_INIT_Rectangle' 329 | #define SPA_POD_INIT_Rectangle(val) ((struct spa_pod_rectangle){ { sizeof(struct spa_rectangle), SPA_TYPE_Rectangle }, (val) }) | ^~~ /usr/include/spa-0.2/spa/pod/builder.h:334:67: note: in expansion of macro 'SPA_RECTANGLE' 334 | const struct spa_pod_rectangle p = SPA_POD_INIT_Rectangle(SPA_RECTANGLE(width, height)); | ^~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:329:126: warning: ISO C++ forbids compound-literals [-Wpedantic] 329 | #define SPA_POD_INIT_Rectangle(val) ((struct spa_pod_rectangle){ { sizeof(struct spa_rectangle), SPA_TYPE_Rectangle }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:334:44: note: in expansion of macro 'SPA_POD_INIT_Rectangle' 334 | const struct spa_pod_rectangle p = SPA_POD_INIT_Rectangle(SPA_RECTANGLE(width, height)); | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_fraction(spa_pod_builder*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/utils/defs.h:118:72: warning: ISO C++ forbids compound-literals [-Wpedantic] 118 | #define SPA_FRACTION(num,denom) ((struct spa_fraction){ (num), (denom) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:338:117: note: in definition of macro 'SPA_POD_INIT_Fraction' 338 | #define SPA_POD_INIT_Fraction(val) ((struct spa_pod_fraction){ { sizeof(struct spa_fraction), SPA_TYPE_Fraction }, (val) }) | ^~~ /usr/include/spa-0.2/spa/pod/builder.h:343:65: note: in expansion of macro 'SPA_FRACTION' 343 | const struct spa_pod_fraction p = SPA_POD_INIT_Fraction(SPA_FRACTION(num, denom)); | ^~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:338:122: warning: ISO C++ forbids compound-literals [-Wpedantic] 338 | #define SPA_POD_INIT_Fraction(val) ((struct spa_pod_fraction){ { sizeof(struct spa_fraction), SPA_TYPE_Fraction }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:343:43: note: in expansion of macro 'SPA_POD_INIT_Fraction' 343 | const struct spa_pod_fraction p = SPA_POD_INIT_Fraction(SPA_FRACTION(num, denom)); | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_push_struct(spa_pod_builder*, spa_pod_frame*)': /usr/include/spa-0.2/spa/pod/builder.h:394:89: warning: ISO C++ forbids compound-literals [-Wpedantic] 394 | #define SPA_POD_INIT_Struct(size) ((struct spa_pod_struct){ { (size), SPA_TYPE_Struct } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:399:41: note: in expansion of macro 'SPA_POD_INIT_Struct' 399 | const struct spa_pod_struct p = SPA_POD_INIT_Struct(0); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_push_object(spa_pod_builder*, spa_pod_frame*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:406:136: warning: ISO C++ forbids compound-literals [-Wpedantic] 406 | #define SPA_POD_INIT_Object(size,type,id,...) ((struct spa_pod_object){ { (size), SPA_TYPE_Object }, { (type), (id) }, ##__VA_ARGS__ }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:413:13: note: in expansion of macro 'SPA_POD_INIT_Object' 413 | SPA_POD_INIT_Object(sizeof(struct spa_pod_object_body), type, id); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_push_sequence(spa_pod_builder*, spa_pod_frame*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:431:80: warning: ISO C++ forbids compound-literals [-Wpedantic] 431 | ((struct spa_pod_sequence){ { (size), SPA_TYPE_Sequence}, {(unit), 0 } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:437:13: note: in expansion of macro 'SPA_POD_INIT_Sequence' 437 | SPA_POD_INIT_Sequence(sizeof(struct spa_pod_sequence_body), unit); | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/raw-utils.h: In function 'int spa_format_video_raw_parse(const spa_pod*, spa_video_info_raw*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/raw-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/raw-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/dsp-utils.h: In function 'int spa_format_video_dsp_parse(const spa_pod*, spa_video_info_dsp*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/dsp-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/dsp-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/h264-utils.h: In function 'int spa_format_video_h264_parse(const spa_pod*, spa_video_info_h264*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/h264-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/h264-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/mjpg-utils.h: In function 'int spa_format_video_mjpg_parse(const spa_pod*, spa_video_info_mjpg*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/mjpg-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/mjpg-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ At global scope: cc1plus: note: unrecognized command-line option '-Wno-c99-extensions' may have been intended to silence earlier diagnostics cc1plus: note: unrecognized command-line option '-Wno-gnu-statement-expression-from-macro-expansion' may have been intended to silence earlier diagnostics [56/113] Building CXX object tests/CMakeFiles/PipeWireScreencastingTest.dir/screencasting.cpp.o [57/113] Linking CXX static library lib/libPipeWireScreencastingTest.a [58/113] Linking CXX shared library bin/libKPipeWireDmaBuf.so.6.2.80 [59/113] Creating library symlink bin/libKPipeWireDmaBuf.so.6 bin/libKPipeWireDmaBuf.so [60/113] Automatic MOC for target recordme [61/113] Automatic RCC for recordme.qrc [62/113] Building CXX object tests/CMakeFiles/recordme.dir/recordme_autogen/mocs_compilation.cpp.o [63/113] Automatic MOC for target KPipeWireRecord [64/113] Building CXX object src/CMakeFiles/KPipeWireRecord.dir/KPipeWireRecord_autogen/mocs_compilation.cpp.o [65/113] Building CXX object src/CMakeFiles/KPipeWireDeclarative.dir/kpipewiredeclarative_qmltyperegistrations.cpp.o [66/113] Building CXX object src/monitors/CMakeFiles/KPipeWireMonitorDeclarative.dir/KPipeWireMonitorDeclarative_org_kde_pipewire_monitorPlugin.cpp.o [67/113] Building CXX object tests/CMakeFiles/xdp-recordme.dir/xdp_dbus_screencast_interface.cpp.o [68/113] Building CXX object src/CMakeFiles/KPipeWireDeclarative.dir/kpipewiredeclarativeplugin.cpp.o In file included from /usr/include/spa-0.2/spa/support/plugin.h:13, from /usr/include/pipewire-0.3/pipewire/pipewire.h:12, from /opt/kde/src/kpipewire/src/pipewiresourceitem.h:15, from /opt/kde/src/kpipewire/src/kpipewiredeclarativeplugin.cpp:9: /usr/include/spa-0.2/spa/utils/dict.h: In function 'const spa_dict_item* spa_dict_lookup_item(const spa_dict*, const char*)': /usr/include/spa-0.2/spa/utils/dict.h:31:80: warning: ISO C++ forbids compound-literals [-Wpedantic] 31 | #define SPA_DICT_ITEM_INIT(key,value) ((struct spa_dict_item) { (key), (value) }) | ^ /usr/include/spa-0.2/spa/utils/dict.h:70:42: note: in expansion of macro 'SPA_DICT_ITEM_INIT' 70 | struct spa_dict_item k = SPA_DICT_ITEM_INIT(key, NULL); | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/spa-0.2/spa/support/plugin.h:12: /usr/include/pipewire-0.3/pipewire/array.h: In function 'int pw_array_ensure_size(pw_array*, size_t)': /usr/include/spa-0.2/spa/utils/defs.h:271:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 271 | ({ \ | ^ /usr/include/pipewire-0.3/pipewire/array.h:115:25: note: in expansion of macro 'SPA_ROUND_UP' 115 | alloc = SPA_ROUND_UP(need, arr->extend); | ^~~~~~~~~~~~ In file included from /usr/include/spa-0.2/spa/utils/hook.h:13, from /usr/include/pipewire-0.3/pipewire/proxy.h:12, from /usr/include/pipewire-0.3/pipewire/client.h:15, from /usr/include/pipewire-0.3/pipewire/pipewire.h:15: /usr/include/spa-0.2/spa/utils/list.h: In function 'void spa_list_init(spa_list*)': /usr/include/spa-0.2/spa/utils/list.h:27:64: warning: ISO C++ forbids compound-literals [-Wpedantic] 27 | #define SPA_LIST_INIT(list) ((struct spa_list){ (list), (list) }) | ^ /usr/include/spa-0.2/spa/utils/list.h:31:17: note: in expansion of macro 'SPA_LIST_INIT' 31 | *list = SPA_LIST_INIT(list); | ^~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/hook.h: In function 'void spa_hook_list_append(spa_hook_list*, spa_hook*, const void*, void*)': /usr/include/spa-0.2/spa/utils/hook.h:125:86: warning: ISO C++ forbids compound-literals [-Wpedantic] 125 | #define SPA_CALLBACKS_INIT(_funcs,_data) ((struct spa_callbacks){ (_funcs), (_data), }) | ^ /usr/include/spa-0.2/spa/utils/hook.h:367:20: note: in expansion of macro 'SPA_CALLBACKS_INIT' 367 | hook->cb = SPA_CALLBACKS_INIT(funcs, data); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/hook.h: In function 'void spa_hook_list_prepend(spa_hook_list*, spa_hook*, const void*, void*)': /usr/include/spa-0.2/spa/utils/hook.h:125:86: warning: ISO C++ forbids compound-literals [-Wpedantic] 125 | #define SPA_CALLBACKS_INIT(_funcs,_data) ((struct spa_callbacks){ (_funcs), (_data), }) | ^ /usr/include/spa-0.2/spa/utils/hook.h:377:20: note: in expansion of macro 'SPA_CALLBACKS_INIT' 377 | hook->cb = SPA_CALLBACKS_INIT(funcs, data); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/string.h: In function 'int spa_strbuf_append(spa_strbuf*, const char*, ...)': /usr/include/spa-0.2/spa/utils/defs.h:147:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 147 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/string.h:384:29: note: in expansion of macro 'SPA_MIN' 384 | buf->pos += SPA_MIN(remain, (size_t)written); | ^~~~~~~ In file included from /usr/include/pipewire-0.3/pipewire/context.h:48, from /usr/include/pipewire-0.3/pipewire/protocol.h:26, from /usr/include/pipewire-0.3/pipewire/proxy.h:90: /usr/include/pipewire-0.3/pipewire/core.h: In function 'int pw_core_errorv(pw_core*, uint32_t, int, int, const char*, __va_list_tag*)': /usr/include/pipewire-0.3/pipewire/core.h:338:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 338 | ({ \ | ^ /usr/include/pipewire-0.3/pipewire/core.h:350:41: note: in expansion of macro 'pw_core_method' 350 | #define pw_core_error(c,...) pw_core_method(c,error,0,__VA_ARGS__) | ^~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:361:16: note: in expansion of macro 'pw_core_error' 361 | return pw_core_error(core, id, seq, res, buffer); | ^~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:340:9: note: in expansion of macro 'spa_interface_call_res' 340 | spa_interface_call_res((struct spa_interface*)o, \ | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:350:41: note: in expansion of macro 'pw_core_method' 350 | #define pw_core_error(c,...) pw_core_method(c,error,0,__VA_ARGS__) | ^~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:361:16: note: in expansion of macro 'pw_core_error' 361 | return pw_core_error(core, id, seq, res, buffer); | ^~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h: In function 'pw_registry* pw_core_get_registry(pw_core*, uint32_t, size_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:381:9: note: in expansion of macro 'spa_interface_call_res' 381 | spa_interface_call_res((struct spa_interface*)core, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h: In function 'void* pw_core_create_object(pw_core*, const char*, const char*, uint32_t, const spa_dict*, size_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:396:9: note: in expansion of macro 'spa_interface_call_res' 396 | spa_interface_call_res((struct spa_interface*)core, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h: In function 'void* pw_registry_bind(pw_registry*, uint32_t, const char*, uint32_t, size_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:537:9: note: in expansion of macro 'spa_interface_call_res' 537 | spa_interface_call_res((struct spa_interface*)registry, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/log.h: In function 'void spa_log_topic_init(spa_log*, spa_log_topic*)': /usr/include/spa-0.2/spa/utils/hook.h:157:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 157 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:230:9: note: in expansion of macro 'spa_callbacks_call' 230 | spa_callbacks_call(&(iface)->cb,method_type,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/log.h:221:9: note: in expansion of macro 'spa_interface_call' 221 | spa_interface_call(&log->iface, struct spa_log_methods, topic_init, 1, topic); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'spa_thread* spa_thread_utils_create(spa_thread_utils*, const spa_dict*, void* (*)(void*), void*)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:65:9: note: in expansion of macro 'spa_interface_call_res' 65 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_join(spa_thread_utils*, spa_thread*, void**)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:77:9: note: in expansion of macro 'spa_interface_call_res' 77 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_get_rt_range(spa_thread_utils*, const spa_dict*, int*, int*)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:89:9: note: in expansion of macro 'spa_interface_call_res' 89 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_acquire_rt(spa_thread_utils*, spa_thread*, int)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:101:9: note: in expansion of macro 'spa_interface_call_res' 101 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_drop_rt(spa_thread_utils*, spa_thread*)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:113:9: note: in expansion of macro 'spa_interface_call_res' 113 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/iter.h: In function 'uint32_t spa_pod_copy_array(const spa_pod*, uint32_t, void*, uint32_t)': /usr/include/spa-0.2/spa/utils/defs.h:147:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 147 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/iter.h:337:20: note: in expansion of macro 'SPA_MIN' 337 | n_values = SPA_MIN(n_values, max_values); | ^~~~~~~ /usr/include/spa-0.2/spa/pod/iter.h: In function 'spa_pod* spa_pod_get_values(const spa_pod*, uint32_t*, uint32_t*)': /usr/include/spa-0.2/spa/utils/defs.h:147:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 147 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/iter.h:353:35: note: in expansion of macro 'SPA_MIN' 353 | *n_vals = SPA_MIN(1u, SPA_POD_CHOICE_N_VALUES(pod)); | ^~~~~~~ In file included from /usr/include/spa-0.2/spa/param/format-utils.h:18, from /opt/kde/src/kpipewire/src/pipewiresourceitem.h:16: /usr/include/spa-0.2/spa/pod/parser.h: In function 'void spa_pod_parser_init(spa_pod_parser*, const void*, uint32_t)': /usr/include/spa-0.2/spa/pod/parser.h:36:94: warning: ISO C++ forbids compound-literals [-Wpedantic] 36 | #define SPA_POD_PARSER_INIT(buffer,size) ((struct spa_pod_parser){ (buffer), (size), 0, {0} }) | ^ /usr/include/spa-0.2/spa/pod/parser.h:41:19: note: in expansion of macro 'SPA_POD_PARSER_INIT' 41 | *parser = SPA_POD_PARSER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:36:94: warning: missing initializer for member 'spa_pod_parser_state::flags' [-Wmissing-field-initializers] 36 | #define SPA_POD_PARSER_INIT(buffer,size) ((struct spa_pod_parser){ (buffer), (size), 0, {0} }) | ^ /usr/include/spa-0.2/spa/pod/parser.h:41:19: note: in expansion of macro 'SPA_POD_PARSER_INIT' 41 | *parser = SPA_POD_PARSER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:36:94: warning: missing initializer for member 'spa_pod_parser_state::frame' [-Wmissing-field-initializers] 36 | #define SPA_POD_PARSER_INIT(buffer,size) ((struct spa_pod_parser){ (buffer), (size), 0, {0} }) | ^ /usr/include/spa-0.2/spa/pod/parser.h:41:19: note: in expansion of macro 'SPA_POD_PARSER_INIT' 41 | *parser = SPA_POD_PARSER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/format-utils.h: In function 'int spa_format_parse(const spa_pod*, uint32_t*, uint32_t*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/format-utils.h:24:16: note: in expansion of macro 'spa_pod_parse_object' 24 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/format-utils.h:24:16: note: in expansion of macro 'spa_pod_parse_object' 24 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'void spa_pod_builder_set_callbacks(spa_pod_builder*, const spa_pod_builder_callbacks*, void*)': /usr/include/spa-0.2/spa/utils/hook.h:125:86: warning: ISO C++ forbids compound-literals [-Wpedantic] 125 | #define SPA_CALLBACKS_INIT(_funcs,_data) ((struct spa_callbacks){ (_funcs), (_data), }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:64:30: note: in expansion of macro 'SPA_CALLBACKS_INIT' 64 | builder->callbacks = SPA_CALLBACKS_INIT(callbacks, data); | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/spa-0.2/spa/param/video/raw-utils.h:18, from /usr/include/spa-0.2/spa/param/video/format-utils.h:14, from /opt/kde/src/kpipewire/src/pipewiresourceitem.h:18: /usr/include/spa-0.2/spa/pod/builder.h: In function 'void spa_pod_builder_init(spa_pod_builder*, void*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: ISO C++ forbids compound-literals [-Wpedantic] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: missing initializer for member 'spa_pod_builder_state::flags' [-Wmissing-field-initializers] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: missing initializer for member 'spa_pod_builder_state::frame' [-Wmissing-field-initializers] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: missing initializer for member 'spa_callbacks::data' [-Wmissing-field-initializers] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_raw(spa_pod_builder*, const void*, uint32_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/builder.h:127:25: note: in expansion of macro 'spa_callbacks_call_res' 127 | spa_callbacks_call_res(&builder->callbacks, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_primitive(spa_pod_builder*, const spa_pod*)': /usr/include/spa-0.2/spa/utils/defs.h:83:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 83 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/builder.h:188:17: note: in expansion of macro 'SPA_FLAG_CLEAR' 188 | SPA_FLAG_CLEAR(builder->state.flags, SPA_POD_BUILDER_FLAG_FIRST); | ^~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_none(spa_pod_builder*)': /usr/include/spa-0.2/spa/pod/builder.h:197:68: warning: ISO C++ forbids compound-literals [-Wpedantic] 197 | #define SPA_POD_INIT(size,type) ((struct spa_pod) { (size), (type) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:199:29: note: in expansion of macro 'SPA_POD_INIT' 199 | #define SPA_POD_INIT_None() SPA_POD_INIT(0, SPA_TYPE_None) | ^~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:203:34: note: in expansion of macro 'SPA_POD_INIT_None' 203 | const struct spa_pod p = SPA_POD_INIT_None(); | ^~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_child(spa_pod_builder*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:197:68: warning: ISO C++ forbids compound-literals [-Wpedantic] 197 | #define SPA_POD_INIT(size,type) ((struct spa_pod) { (size), (type) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:209:34: note: in expansion of macro 'SPA_POD_INIT' 209 | const struct spa_pod p = SPA_POD_INIT(size,type); | ^~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/defs.h:83:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 83 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/builder.h:210:9: note: in expansion of macro 'SPA_FLAG_CLEAR' 210 | SPA_FLAG_CLEAR(builder->state.flags, SPA_POD_BUILDER_FLAG_FIRST); | ^~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_bool(spa_pod_builder*, bool)': /usr/include/spa-0.2/spa/pod/builder.h:214:110: warning: ISO C++ forbids compound-literals [-Wpedantic] 214 | #define SPA_POD_INIT_Bool(val) ((struct spa_pod_bool){ { sizeof(uint32_t), SPA_TYPE_Bool }, (val) ? 1 : 0, 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:218:39: note: in expansion of macro 'SPA_POD_INIT_Bool' 218 | const struct spa_pod_bool p = SPA_POD_INIT_Bool(val); | ^~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_id(spa_pod_builder*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:222:96: warning: ISO C++ forbids compound-literals [-Wpedantic] 222 | #define SPA_POD_INIT_Id(val) ((struct spa_pod_id){ { sizeof(uint32_t), SPA_TYPE_Id }, (val), 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:226:37: note: in expansion of macro 'SPA_POD_INIT_Id' 226 | const struct spa_pod_id p = SPA_POD_INIT_Id(val); | ^~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_int(spa_pod_builder*, int32_t)': /usr/include/spa-0.2/spa/pod/builder.h:230:98: warning: ISO C++ forbids compound-literals [-Wpedantic] 230 | #define SPA_POD_INIT_Int(val) ((struct spa_pod_int){ { sizeof(int32_t), SPA_TYPE_Int }, (val), 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:234:38: note: in expansion of macro 'SPA_POD_INIT_Int' 234 | const struct spa_pod_int p = SPA_POD_INIT_Int(val); | ^~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_long(spa_pod_builder*, int64_t)': /usr/include/spa-0.2/spa/pod/builder.h:238:98: warning: ISO C++ forbids compound-literals [-Wpedantic] 238 | #define SPA_POD_INIT_Long(val) ((struct spa_pod_long){ { sizeof(int64_t), SPA_TYPE_Long }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:242:39: note: in expansion of macro 'SPA_POD_INIT_Long' 242 | const struct spa_pod_long p = SPA_POD_INIT_Long(val); | ^~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_float(spa_pod_builder*, float)': /usr/include/spa-0.2/spa/pod/builder.h:246:102: warning: ISO C++ forbids compound-literals [-Wpedantic] 246 | #define SPA_POD_INIT_Float(val) ((struct spa_pod_float){ { sizeof(float), SPA_TYPE_Float }, (val), 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:250:40: note: in expansion of macro 'SPA_POD_INIT_Float' 250 | const struct spa_pod_float p = SPA_POD_INIT_Float(val); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_double(spa_pod_builder*, double)': /usr/include/spa-0.2/spa/pod/builder.h:254:103: warning: ISO C++ forbids compound-literals [-Wpedantic] 254 | #define SPA_POD_INIT_Double(val) ((struct spa_pod_double){ { sizeof(double), SPA_TYPE_Double }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:258:41: note: in expansion of macro 'SPA_POD_INIT_Double' 258 | const struct spa_pod_double p = SPA_POD_INIT_Double(val); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_string_len(spa_pod_builder*, const char*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:262:87: warning: ISO C++ forbids compound-literals [-Wpedantic] 262 | #define SPA_POD_INIT_String(len) ((struct spa_pod_string){ { (len), SPA_TYPE_String } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:279:41: note: in expansion of macro 'SPA_POD_INIT_String' 279 | const struct spa_pod_string p = SPA_POD_INIT_String(len+1); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_bytes(spa_pod_builder*, const void*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:292:84: warning: ISO C++ forbids compound-literals [-Wpedantic] 292 | #define SPA_POD_INIT_Bytes(len) ((struct spa_pod_bytes){ { (len), SPA_TYPE_Bytes } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:297:40: note: in expansion of macro 'SPA_POD_INIT_Bytes' 297 | const struct spa_pod_bytes p = SPA_POD_INIT_Bytes(len); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_pointer(spa_pod_builder*, uint32_t, const void*)': /usr/include/spa-0.2/spa/pod/builder.h:312:151: warning: ISO C++ forbids compound-literals [-Wpedantic] 312 | #define SPA_POD_INIT_Pointer(type,value) ((struct spa_pod_pointer){ { sizeof(struct spa_pod_pointer_body), SPA_TYPE_Pointer }, { (type), 0, (value) } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:317:42: note: in expansion of macro 'SPA_POD_INIT_Pointer' 317 | const struct spa_pod_pointer p = SPA_POD_INIT_Pointer(type, val); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_fd(spa_pod_builder*, int64_t)': /usr/include/spa-0.2/spa/pod/builder.h:321:90: warning: ISO C++ forbids compound-literals [-Wpedantic] 321 | #define SPA_POD_INIT_Fd(fd) ((struct spa_pod_fd){ { sizeof(int64_t), SPA_TYPE_Fd }, (fd) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:325:37: note: in expansion of macro 'SPA_POD_INIT_Fd' 325 | const struct spa_pod_fd p = SPA_POD_INIT_Fd(fd); | ^~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_rectangle(spa_pod_builder*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/utils/defs.h:100:80: warning: ISO C++ forbids compound-literals [-Wpedantic] 100 | #define SPA_RECTANGLE(width,height) ((struct spa_rectangle){ (width), (height) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:329:121: note: in definition of macro 'SPA_POD_INIT_Rectangle' 329 | #define SPA_POD_INIT_Rectangle(val) ((struct spa_pod_rectangle){ { sizeof(struct spa_rectangle), SPA_TYPE_Rectangle }, (val) }) | ^~~ /usr/include/spa-0.2/spa/pod/builder.h:334:67: note: in expansion of macro 'SPA_RECTANGLE' 334 | const struct spa_pod_rectangle p = SPA_POD_INIT_Rectangle(SPA_RECTANGLE(width, height)); | ^~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:329:126: warning: ISO C++ forbids compound-literals [-Wpedantic] 329 | #define SPA_POD_INIT_Rectangle(val) ((struct spa_pod_rectangle){ { sizeof(struct spa_rectangle), SPA_TYPE_Rectangle }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:334:44: note: in expansion of macro 'SPA_POD_INIT_Rectangle' 334 | const struct spa_pod_rectangle p = SPA_POD_INIT_Rectangle(SPA_RECTANGLE(width, height)); | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_fraction(spa_pod_builder*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/utils/defs.h:118:72: warning: ISO C++ forbids compound-literals [-Wpedantic] 118 | #define SPA_FRACTION(num,denom) ((struct spa_fraction){ (num), (denom) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:338:117: note: in definition of macro 'SPA_POD_INIT_Fraction' 338 | #define SPA_POD_INIT_Fraction(val) ((struct spa_pod_fraction){ { sizeof(struct spa_fraction), SPA_TYPE_Fraction }, (val) }) | ^~~ /usr/include/spa-0.2/spa/pod/builder.h:343:65: note: in expansion of macro 'SPA_FRACTION' 343 | const struct spa_pod_fraction p = SPA_POD_INIT_Fraction(SPA_FRACTION(num, denom)); | ^~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:338:122: warning: ISO C++ forbids compound-literals [-Wpedantic] 338 | #define SPA_POD_INIT_Fraction(val) ((struct spa_pod_fraction){ { sizeof(struct spa_fraction), SPA_TYPE_Fraction }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:343:43: note: in expansion of macro 'SPA_POD_INIT_Fraction' 343 | const struct spa_pod_fraction p = SPA_POD_INIT_Fraction(SPA_FRACTION(num, denom)); | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_push_struct(spa_pod_builder*, spa_pod_frame*)': /usr/include/spa-0.2/spa/pod/builder.h:394:89: warning: ISO C++ forbids compound-literals [-Wpedantic] 394 | #define SPA_POD_INIT_Struct(size) ((struct spa_pod_struct){ { (size), SPA_TYPE_Struct } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:399:41: note: in expansion of macro 'SPA_POD_INIT_Struct' 399 | const struct spa_pod_struct p = SPA_POD_INIT_Struct(0); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_push_object(spa_pod_builder*, spa_pod_frame*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:406:136: warning: ISO C++ forbids compound-literals [-Wpedantic] 406 | #define SPA_POD_INIT_Object(size,type,id,...) ((struct spa_pod_object){ { (size), SPA_TYPE_Object }, { (type), (id) }, ##__VA_ARGS__ }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:413:13: note: in expansion of macro 'SPA_POD_INIT_Object' 413 | SPA_POD_INIT_Object(sizeof(struct spa_pod_object_body), type, id); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_push_sequence(spa_pod_builder*, spa_pod_frame*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:431:80: warning: ISO C++ forbids compound-literals [-Wpedantic] 431 | ((struct spa_pod_sequence){ { (size), SPA_TYPE_Sequence}, {(unit), 0 } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:437:13: note: in expansion of macro 'SPA_POD_INIT_Sequence' 437 | SPA_POD_INIT_Sequence(sizeof(struct spa_pod_sequence_body), unit); | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/raw-utils.h: In function 'int spa_format_video_raw_parse(const spa_pod*, spa_video_info_raw*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/raw-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/raw-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/dsp-utils.h: In function 'int spa_format_video_dsp_parse(const spa_pod*, spa_video_info_dsp*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/dsp-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/dsp-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/h264-utils.h: In function 'int spa_format_video_h264_parse(const spa_pod*, spa_video_info_h264*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/h264-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/h264-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/mjpg-utils.h: In function 'int spa_format_video_mjpg_parse(const spa_pod*, spa_video_info_mjpg*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/mjpg-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/mjpg-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ At global scope: cc1plus: note: unrecognized command-line option '-Wno-c99-extensions' may have been intended to silence earlier diagnostics cc1plus: note: unrecognized command-line option '-Wno-gnu-statement-expression-from-macro-expansion' may have been intended to silence earlier diagnostics [69/113] Building CXX object src/monitors/CMakeFiles/KPipeWireMonitorDeclarative.dir/kpipewiremonitordeclarative_qmltyperegistrations.cpp.o [70/113] Building CXX object src/CMakeFiles/KPipeWireRecord.dir/logging_record.cpp.o [71/113] Building CXX object tests/CMakeFiles/recordme.dir/main.cpp.o [72/113] Building CXX object src/CMakeFiles/KPipeWireRecord.dir/logging_libav.cpp.o [73/113] Building CXX object tests/CMakeFiles/xdp-recordme.dir/RecordMe.cpp.o [74/113] Building CXX object src/CMakeFiles/KPipeWireRecord.dir/pipewireencodedstream.cpp.o In file included from /usr/include/spa-0.2/spa/support/plugin.h:13, from /usr/include/pipewire-0.3/pipewire/pipewire.h:12, from /opt/kde/src/kpipewire/src/pipewireproduce_p.h:13, from /opt/kde/src/kpipewire/src/pipewireencodedstream_p.h:10, from /opt/kde/src/kpipewire/src/pipewireencodedstream.cpp:8: /usr/include/spa-0.2/spa/utils/dict.h: In function 'const spa_dict_item* spa_dict_lookup_item(const spa_dict*, const char*)': /usr/include/spa-0.2/spa/utils/dict.h:31:80: warning: ISO C++ forbids compound-literals [-Wpedantic] 31 | #define SPA_DICT_ITEM_INIT(key,value) ((struct spa_dict_item) { (key), (value) }) | ^ /usr/include/spa-0.2/spa/utils/dict.h:70:42: note: in expansion of macro 'SPA_DICT_ITEM_INIT' 70 | struct spa_dict_item k = SPA_DICT_ITEM_INIT(key, NULL); | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/spa-0.2/spa/support/plugin.h:12: /usr/include/pipewire-0.3/pipewire/array.h: In function 'int pw_array_ensure_size(pw_array*, size_t)': /usr/include/spa-0.2/spa/utils/defs.h:271:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 271 | ({ \ | ^ /usr/include/pipewire-0.3/pipewire/array.h:115:25: note: in expansion of macro 'SPA_ROUND_UP' 115 | alloc = SPA_ROUND_UP(need, arr->extend); | ^~~~~~~~~~~~ In file included from /usr/include/spa-0.2/spa/utils/hook.h:13, from /usr/include/pipewire-0.3/pipewire/proxy.h:12, from /usr/include/pipewire-0.3/pipewire/client.h:15, from /usr/include/pipewire-0.3/pipewire/pipewire.h:15: /usr/include/spa-0.2/spa/utils/list.h: In function 'void spa_list_init(spa_list*)': /usr/include/spa-0.2/spa/utils/list.h:27:64: warning: ISO C++ forbids compound-literals [-Wpedantic] 27 | #define SPA_LIST_INIT(list) ((struct spa_list){ (list), (list) }) | ^ /usr/include/spa-0.2/spa/utils/list.h:31:17: note: in expansion of macro 'SPA_LIST_INIT' 31 | *list = SPA_LIST_INIT(list); | ^~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/hook.h: In function 'void spa_hook_list_append(spa_hook_list*, spa_hook*, const void*, void*)': /usr/include/spa-0.2/spa/utils/hook.h:125:86: warning: ISO C++ forbids compound-literals [-Wpedantic] 125 | #define SPA_CALLBACKS_INIT(_funcs,_data) ((struct spa_callbacks){ (_funcs), (_data), }) | ^ /usr/include/spa-0.2/spa/utils/hook.h:367:20: note: in expansion of macro 'SPA_CALLBACKS_INIT' 367 | hook->cb = SPA_CALLBACKS_INIT(funcs, data); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/hook.h: In function 'void spa_hook_list_prepend(spa_hook_list*, spa_hook*, const void*, void*)': /usr/include/spa-0.2/spa/utils/hook.h:125:86: warning: ISO C++ forbids compound-literals [-Wpedantic] 125 | #define SPA_CALLBACKS_INIT(_funcs,_data) ((struct spa_callbacks){ (_funcs), (_data), }) | ^ /usr/include/spa-0.2/spa/utils/hook.h:377:20: note: in expansion of macro 'SPA_CALLBACKS_INIT' 377 | hook->cb = SPA_CALLBACKS_INIT(funcs, data); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/string.h: In function 'int spa_strbuf_append(spa_strbuf*, const char*, ...)': /usr/include/spa-0.2/spa/utils/defs.h:147:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 147 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/string.h:384:29: note: in expansion of macro 'SPA_MIN' 384 | buf->pos += SPA_MIN(remain, (size_t)written); | ^~~~~~~ In file included from /usr/include/pipewire-0.3/pipewire/context.h:48, from /usr/include/pipewire-0.3/pipewire/protocol.h:26, from /usr/include/pipewire-0.3/pipewire/proxy.h:90: /usr/include/pipewire-0.3/pipewire/core.h: In function 'int pw_core_errorv(pw_core*, uint32_t, int, int, const char*, __va_list_tag*)': /usr/include/pipewire-0.3/pipewire/core.h:338:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 338 | ({ \ | ^ /usr/include/pipewire-0.3/pipewire/core.h:350:41: note: in expansion of macro 'pw_core_method' 350 | #define pw_core_error(c,...) pw_core_method(c,error,0,__VA_ARGS__) | ^~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:361:16: note: in expansion of macro 'pw_core_error' 361 | return pw_core_error(core, id, seq, res, buffer); | ^~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:340:9: note: in expansion of macro 'spa_interface_call_res' 340 | spa_interface_call_res((struct spa_interface*)o, \ | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:350:41: note: in expansion of macro 'pw_core_method' 350 | #define pw_core_error(c,...) pw_core_method(c,error,0,__VA_ARGS__) | ^~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:361:16: note: in expansion of macro 'pw_core_error' 361 | return pw_core_error(core, id, seq, res, buffer); | ^~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h: In function 'pw_registry* pw_core_get_registry(pw_core*, uint32_t, size_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:381:9: note: in expansion of macro 'spa_interface_call_res' 381 | spa_interface_call_res((struct spa_interface*)core, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h: In function 'void* pw_core_create_object(pw_core*, const char*, const char*, uint32_t, const spa_dict*, size_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:396:9: note: in expansion of macro 'spa_interface_call_res' 396 | spa_interface_call_res((struct spa_interface*)core, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h: In function 'void* pw_registry_bind(pw_registry*, uint32_t, const char*, uint32_t, size_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:537:9: note: in expansion of macro 'spa_interface_call_res' 537 | spa_interface_call_res((struct spa_interface*)registry, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/log.h: In function 'void spa_log_topic_init(spa_log*, spa_log_topic*)': /usr/include/spa-0.2/spa/utils/hook.h:157:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 157 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:230:9: note: in expansion of macro 'spa_callbacks_call' 230 | spa_callbacks_call(&(iface)->cb,method_type,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/log.h:221:9: note: in expansion of macro 'spa_interface_call' 221 | spa_interface_call(&log->iface, struct spa_log_methods, topic_init, 1, topic); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'spa_thread* spa_thread_utils_create(spa_thread_utils*, const spa_dict*, void* (*)(void*), void*)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:65:9: note: in expansion of macro 'spa_interface_call_res' 65 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_join(spa_thread_utils*, spa_thread*, void**)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:77:9: note: in expansion of macro 'spa_interface_call_res' 77 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_get_rt_range(spa_thread_utils*, const spa_dict*, int*, int*)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:89:9: note: in expansion of macro 'spa_interface_call_res' 89 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_acquire_rt(spa_thread_utils*, spa_thread*, int)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:101:9: note: in expansion of macro 'spa_interface_call_res' 101 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_drop_rt(spa_thread_utils*, spa_thread*)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:113:9: note: in expansion of macro 'spa_interface_call_res' 113 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/iter.h: In function 'uint32_t spa_pod_copy_array(const spa_pod*, uint32_t, void*, uint32_t)': /usr/include/spa-0.2/spa/utils/defs.h:147:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 147 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/iter.h:337:20: note: in expansion of macro 'SPA_MIN' 337 | n_values = SPA_MIN(n_values, max_values); | ^~~~~~~ /usr/include/spa-0.2/spa/pod/iter.h: In function 'spa_pod* spa_pod_get_values(const spa_pod*, uint32_t*, uint32_t*)': /usr/include/spa-0.2/spa/utils/defs.h:147:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 147 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/iter.h:353:35: note: in expansion of macro 'SPA_MIN' 353 | *n_vals = SPA_MIN(1u, SPA_POD_CHOICE_N_VALUES(pod)); | ^~~~~~~ In file included from /usr/include/spa-0.2/spa/param/format-utils.h:18, from /opt/kde/src/kpipewire/src/pipewireproduce_p.h:14: /usr/include/spa-0.2/spa/pod/parser.h: In function 'void spa_pod_parser_init(spa_pod_parser*, const void*, uint32_t)': /usr/include/spa-0.2/spa/pod/parser.h:36:94: warning: ISO C++ forbids compound-literals [-Wpedantic] 36 | #define SPA_POD_PARSER_INIT(buffer,size) ((struct spa_pod_parser){ (buffer), (size), 0, {0} }) | ^ /usr/include/spa-0.2/spa/pod/parser.h:41:19: note: in expansion of macro 'SPA_POD_PARSER_INIT' 41 | *parser = SPA_POD_PARSER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:36:94: warning: missing initializer for member 'spa_pod_parser_state::flags' [-Wmissing-field-initializers] 36 | #define SPA_POD_PARSER_INIT(buffer,size) ((struct spa_pod_parser){ (buffer), (size), 0, {0} }) | ^ /usr/include/spa-0.2/spa/pod/parser.h:41:19: note: in expansion of macro 'SPA_POD_PARSER_INIT' 41 | *parser = SPA_POD_PARSER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:36:94: warning: missing initializer for member 'spa_pod_parser_state::frame' [-Wmissing-field-initializers] 36 | #define SPA_POD_PARSER_INIT(buffer,size) ((struct spa_pod_parser){ (buffer), (size), 0, {0} }) | ^ /usr/include/spa-0.2/spa/pod/parser.h:41:19: note: in expansion of macro 'SPA_POD_PARSER_INIT' 41 | *parser = SPA_POD_PARSER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/format-utils.h: In function 'int spa_format_parse(const spa_pod*, uint32_t*, uint32_t*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/format-utils.h:24:16: note: in expansion of macro 'spa_pod_parse_object' 24 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/format-utils.h:24:16: note: in expansion of macro 'spa_pod_parse_object' 24 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'void spa_pod_builder_set_callbacks(spa_pod_builder*, const spa_pod_builder_callbacks*, void*)': /usr/include/spa-0.2/spa/utils/hook.h:125:86: warning: ISO C++ forbids compound-literals [-Wpedantic] 125 | #define SPA_CALLBACKS_INIT(_funcs,_data) ((struct spa_callbacks){ (_funcs), (_data), }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:64:30: note: in expansion of macro 'SPA_CALLBACKS_INIT' 64 | builder->callbacks = SPA_CALLBACKS_INIT(callbacks, data); | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/spa-0.2/spa/param/video/raw-utils.h:18, from /usr/include/spa-0.2/spa/param/video/format-utils.h:14, from /opt/kde/src/kpipewire/src/pipewireproduce_p.h:16: /usr/include/spa-0.2/spa/pod/builder.h: In function 'void spa_pod_builder_init(spa_pod_builder*, void*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: ISO C++ forbids compound-literals [-Wpedantic] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: missing initializer for member 'spa_pod_builder_state::flags' [-Wmissing-field-initializers] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: missing initializer for member 'spa_pod_builder_state::frame' [-Wmissing-field-initializers] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: missing initializer for member 'spa_callbacks::data' [-Wmissing-field-initializers] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_raw(spa_pod_builder*, const void*, uint32_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/builder.h:127:25: note: in expansion of macro 'spa_callbacks_call_res' 127 | spa_callbacks_call_res(&builder->callbacks, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_primitive(spa_pod_builder*, const spa_pod*)': /usr/include/spa-0.2/spa/utils/defs.h:83:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 83 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/builder.h:188:17: note: in expansion of macro 'SPA_FLAG_CLEAR' 188 | SPA_FLAG_CLEAR(builder->state.flags, SPA_POD_BUILDER_FLAG_FIRST); | ^~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_none(spa_pod_builder*)': /usr/include/spa-0.2/spa/pod/builder.h:197:68: warning: ISO C++ forbids compound-literals [-Wpedantic] 197 | #define SPA_POD_INIT(size,type) ((struct spa_pod) { (size), (type) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:199:29: note: in expansion of macro 'SPA_POD_INIT' 199 | #define SPA_POD_INIT_None() SPA_POD_INIT(0, SPA_TYPE_None) | ^~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:203:34: note: in expansion of macro 'SPA_POD_INIT_None' 203 | const struct spa_pod p = SPA_POD_INIT_None(); | ^~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_child(spa_pod_builder*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:197:68: warning: ISO C++ forbids compound-literals [-Wpedantic] 197 | #define SPA_POD_INIT(size,type) ((struct spa_pod) { (size), (type) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:209:34: note: in expansion of macro 'SPA_POD_INIT' 209 | const struct spa_pod p = SPA_POD_INIT(size,type); | ^~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/defs.h:83:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 83 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/builder.h:210:9: note: in expansion of macro 'SPA_FLAG_CLEAR' 210 | SPA_FLAG_CLEAR(builder->state.flags, SPA_POD_BUILDER_FLAG_FIRST); | ^~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_bool(spa_pod_builder*, bool)': /usr/include/spa-0.2/spa/pod/builder.h:214:110: warning: ISO C++ forbids compound-literals [-Wpedantic] 214 | #define SPA_POD_INIT_Bool(val) ((struct spa_pod_bool){ { sizeof(uint32_t), SPA_TYPE_Bool }, (val) ? 1 : 0, 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:218:39: note: in expansion of macro 'SPA_POD_INIT_Bool' 218 | const struct spa_pod_bool p = SPA_POD_INIT_Bool(val); | ^~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_id(spa_pod_builder*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:222:96: warning: ISO C++ forbids compound-literals [-Wpedantic] 222 | #define SPA_POD_INIT_Id(val) ((struct spa_pod_id){ { sizeof(uint32_t), SPA_TYPE_Id }, (val), 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:226:37: note: in expansion of macro 'SPA_POD_INIT_Id' 226 | const struct spa_pod_id p = SPA_POD_INIT_Id(val); | ^~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_int(spa_pod_builder*, int32_t)': /usr/include/spa-0.2/spa/pod/builder.h:230:98: warning: ISO C++ forbids compound-literals [-Wpedantic] 230 | #define SPA_POD_INIT_Int(val) ((struct spa_pod_int){ { sizeof(int32_t), SPA_TYPE_Int }, (val), 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:234:38: note: in expansion of macro 'SPA_POD_INIT_Int' 234 | const struct spa_pod_int p = SPA_POD_INIT_Int(val); | ^~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_long(spa_pod_builder*, int64_t)': /usr/include/spa-0.2/spa/pod/builder.h:238:98: warning: ISO C++ forbids compound-literals [-Wpedantic] 238 | #define SPA_POD_INIT_Long(val) ((struct spa_pod_long){ { sizeof(int64_t), SPA_TYPE_Long }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:242:39: note: in expansion of macro 'SPA_POD_INIT_Long' 242 | const struct spa_pod_long p = SPA_POD_INIT_Long(val); | ^~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_float(spa_pod_builder*, float)': /usr/include/spa-0.2/spa/pod/builder.h:246:102: warning: ISO C++ forbids compound-literals [-Wpedantic] 246 | #define SPA_POD_INIT_Float(val) ((struct spa_pod_float){ { sizeof(float), SPA_TYPE_Float }, (val), 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:250:40: note: in expansion of macro 'SPA_POD_INIT_Float' 250 | const struct spa_pod_float p = SPA_POD_INIT_Float(val); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_double(spa_pod_builder*, double)': /usr/include/spa-0.2/spa/pod/builder.h:254:103: warning: ISO C++ forbids compound-literals [-Wpedantic] 254 | #define SPA_POD_INIT_Double(val) ((struct spa_pod_double){ { sizeof(double), SPA_TYPE_Double }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:258:41: note: in expansion of macro 'SPA_POD_INIT_Double' 258 | const struct spa_pod_double p = SPA_POD_INIT_Double(val); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_string_len(spa_pod_builder*, const char*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:262:87: warning: ISO C++ forbids compound-literals [-Wpedantic] 262 | #define SPA_POD_INIT_String(len) ((struct spa_pod_string){ { (len), SPA_TYPE_String } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:279:41: note: in expansion of macro 'SPA_POD_INIT_String' 279 | const struct spa_pod_string p = SPA_POD_INIT_String(len+1); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_bytes(spa_pod_builder*, const void*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:292:84: warning: ISO C++ forbids compound-literals [-Wpedantic] 292 | #define SPA_POD_INIT_Bytes(len) ((struct spa_pod_bytes){ { (len), SPA_TYPE_Bytes } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:297:40: note: in expansion of macro 'SPA_POD_INIT_Bytes' 297 | const struct spa_pod_bytes p = SPA_POD_INIT_Bytes(len); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_pointer(spa_pod_builder*, uint32_t, const void*)': /usr/include/spa-0.2/spa/pod/builder.h:312:151: warning: ISO C++ forbids compound-literals [-Wpedantic] 312 | #define SPA_POD_INIT_Pointer(type,value) ((struct spa_pod_pointer){ { sizeof(struct spa_pod_pointer_body), SPA_TYPE_Pointer }, { (type), 0, (value) } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:317:42: note: in expansion of macro 'SPA_POD_INIT_Pointer' 317 | const struct spa_pod_pointer p = SPA_POD_INIT_Pointer(type, val); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_fd(spa_pod_builder*, int64_t)': /usr/include/spa-0.2/spa/pod/builder.h:321:90: warning: ISO C++ forbids compound-literals [-Wpedantic] 321 | #define SPA_POD_INIT_Fd(fd) ((struct spa_pod_fd){ { sizeof(int64_t), SPA_TYPE_Fd }, (fd) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:325:37: note: in expansion of macro 'SPA_POD_INIT_Fd' 325 | const struct spa_pod_fd p = SPA_POD_INIT_Fd(fd); | ^~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_rectangle(spa_pod_builder*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/utils/defs.h:100:80: warning: ISO C++ forbids compound-literals [-Wpedantic] 100 | #define SPA_RECTANGLE(width,height) ((struct spa_rectangle){ (width), (height) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:329:121: note: in definition of macro 'SPA_POD_INIT_Rectangle' 329 | #define SPA_POD_INIT_Rectangle(val) ((struct spa_pod_rectangle){ { sizeof(struct spa_rectangle), SPA_TYPE_Rectangle }, (val) }) | ^~~ /usr/include/spa-0.2/spa/pod/builder.h:334:67: note: in expansion of macro 'SPA_RECTANGLE' 334 | const struct spa_pod_rectangle p = SPA_POD_INIT_Rectangle(SPA_RECTANGLE(width, height)); | ^~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:329:126: warning: ISO C++ forbids compound-literals [-Wpedantic] 329 | #define SPA_POD_INIT_Rectangle(val) ((struct spa_pod_rectangle){ { sizeof(struct spa_rectangle), SPA_TYPE_Rectangle }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:334:44: note: in expansion of macro 'SPA_POD_INIT_Rectangle' 334 | const struct spa_pod_rectangle p = SPA_POD_INIT_Rectangle(SPA_RECTANGLE(width, height)); | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_fraction(spa_pod_builder*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/utils/defs.h:118:72: warning: ISO C++ forbids compound-literals [-Wpedantic] 118 | #define SPA_FRACTION(num,denom) ((struct spa_fraction){ (num), (denom) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:338:117: note: in definition of macro 'SPA_POD_INIT_Fraction' 338 | #define SPA_POD_INIT_Fraction(val) ((struct spa_pod_fraction){ { sizeof(struct spa_fraction), SPA_TYPE_Fraction }, (val) }) | ^~~ /usr/include/spa-0.2/spa/pod/builder.h:343:65: note: in expansion of macro 'SPA_FRACTION' 343 | const struct spa_pod_fraction p = SPA_POD_INIT_Fraction(SPA_FRACTION(num, denom)); | ^~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:338:122: warning: ISO C++ forbids compound-literals [-Wpedantic] 338 | #define SPA_POD_INIT_Fraction(val) ((struct spa_pod_fraction){ { sizeof(struct spa_fraction), SPA_TYPE_Fraction }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:343:43: note: in expansion of macro 'SPA_POD_INIT_Fraction' 343 | const struct spa_pod_fraction p = SPA_POD_INIT_Fraction(SPA_FRACTION(num, denom)); | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_push_struct(spa_pod_builder*, spa_pod_frame*)': /usr/include/spa-0.2/spa/pod/builder.h:394:89: warning: ISO C++ forbids compound-literals [-Wpedantic] 394 | #define SPA_POD_INIT_Struct(size) ((struct spa_pod_struct){ { (size), SPA_TYPE_Struct } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:399:41: note: in expansion of macro 'SPA_POD_INIT_Struct' 399 | const struct spa_pod_struct p = SPA_POD_INIT_Struct(0); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_push_object(spa_pod_builder*, spa_pod_frame*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:406:136: warning: ISO C++ forbids compound-literals [-Wpedantic] 406 | #define SPA_POD_INIT_Object(size,type,id,...) ((struct spa_pod_object){ { (size), SPA_TYPE_Object }, { (type), (id) }, ##__VA_ARGS__ }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:413:13: note: in expansion of macro 'SPA_POD_INIT_Object' 413 | SPA_POD_INIT_Object(sizeof(struct spa_pod_object_body), type, id); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_push_sequence(spa_pod_builder*, spa_pod_frame*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:431:80: warning: ISO C++ forbids compound-literals [-Wpedantic] 431 | ((struct spa_pod_sequence){ { (size), SPA_TYPE_Sequence}, {(unit), 0 } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:437:13: note: in expansion of macro 'SPA_POD_INIT_Sequence' 437 | SPA_POD_INIT_Sequence(sizeof(struct spa_pod_sequence_body), unit); | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/raw-utils.h: In function 'int spa_format_video_raw_parse(const spa_pod*, spa_video_info_raw*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/raw-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/raw-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/dsp-utils.h: In function 'int spa_format_video_dsp_parse(const spa_pod*, spa_video_info_dsp*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/dsp-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/dsp-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/h264-utils.h: In function 'int spa_format_video_h264_parse(const spa_pod*, spa_video_info_h264*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/h264-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/h264-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/mjpg-utils.h: In function 'int spa_format_video_mjpg_parse(const spa_pod*, spa_video_info_mjpg*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/mjpg-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/mjpg-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ At global scope: cc1plus: note: unrecognized command-line option '-Wno-c99-extensions' may have been intended to silence earlier diagnostics cc1plus: note: unrecognized command-line option '-Wno-gnu-statement-expression-from-macro-expansion' may have been intended to silence earlier diagnostics [75/113] Building CXX object src/CMakeFiles/KPipeWireRecord.dir/pipewirebaseencodedstream.cpp.o In file included from /usr/include/spa-0.2/spa/support/plugin.h:13, from /usr/include/pipewire-0.3/pipewire/pipewire.h:12, from /opt/kde/src/kpipewire/src/pipewireproduce_p.h:13, from /opt/kde/src/kpipewire/src/pipewirebaseencodedstream.cpp:20: /usr/include/spa-0.2/spa/utils/dict.h: In function 'const spa_dict_item* spa_dict_lookup_item(const spa_dict*, const char*)': /usr/include/spa-0.2/spa/utils/dict.h:31:80: warning: ISO C++ forbids compound-literals [-Wpedantic] 31 | #define SPA_DICT_ITEM_INIT(key,value) ((struct spa_dict_item) { (key), (value) }) | ^ /usr/include/spa-0.2/spa/utils/dict.h:70:42: note: in expansion of macro 'SPA_DICT_ITEM_INIT' 70 | struct spa_dict_item k = SPA_DICT_ITEM_INIT(key, NULL); | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/spa-0.2/spa/support/plugin.h:12: /usr/include/pipewire-0.3/pipewire/array.h: In function 'int pw_array_ensure_size(pw_array*, size_t)': /usr/include/spa-0.2/spa/utils/defs.h:271:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 271 | ({ \ | ^ /usr/include/pipewire-0.3/pipewire/array.h:115:25: note: in expansion of macro 'SPA_ROUND_UP' 115 | alloc = SPA_ROUND_UP(need, arr->extend); | ^~~~~~~~~~~~ In file included from /usr/include/spa-0.2/spa/utils/hook.h:13, from /usr/include/pipewire-0.3/pipewire/proxy.h:12, from /usr/include/pipewire-0.3/pipewire/client.h:15, from /usr/include/pipewire-0.3/pipewire/pipewire.h:15: /usr/include/spa-0.2/spa/utils/list.h: In function 'void spa_list_init(spa_list*)': /usr/include/spa-0.2/spa/utils/list.h:27:64: warning: ISO C++ forbids compound-literals [-Wpedantic] 27 | #define SPA_LIST_INIT(list) ((struct spa_list){ (list), (list) }) | ^ /usr/include/spa-0.2/spa/utils/list.h:31:17: note: in expansion of macro 'SPA_LIST_INIT' 31 | *list = SPA_LIST_INIT(list); | ^~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/hook.h: In function 'void spa_hook_list_append(spa_hook_list*, spa_hook*, const void*, void*)': /usr/include/spa-0.2/spa/utils/hook.h:125:86: warning: ISO C++ forbids compound-literals [-Wpedantic] 125 | #define SPA_CALLBACKS_INIT(_funcs,_data) ((struct spa_callbacks){ (_funcs), (_data), }) | ^ /usr/include/spa-0.2/spa/utils/hook.h:367:20: note: in expansion of macro 'SPA_CALLBACKS_INIT' 367 | hook->cb = SPA_CALLBACKS_INIT(funcs, data); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/hook.h: In function 'void spa_hook_list_prepend(spa_hook_list*, spa_hook*, const void*, void*)': /usr/include/spa-0.2/spa/utils/hook.h:125:86: warning: ISO C++ forbids compound-literals [-Wpedantic] 125 | #define SPA_CALLBACKS_INIT(_funcs,_data) ((struct spa_callbacks){ (_funcs), (_data), }) | ^ /usr/include/spa-0.2/spa/utils/hook.h:377:20: note: in expansion of macro 'SPA_CALLBACKS_INIT' 377 | hook->cb = SPA_CALLBACKS_INIT(funcs, data); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/string.h: In function 'int spa_strbuf_append(spa_strbuf*, const char*, ...)': /usr/include/spa-0.2/spa/utils/defs.h:147:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 147 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/string.h:384:29: note: in expansion of macro 'SPA_MIN' 384 | buf->pos += SPA_MIN(remain, (size_t)written); | ^~~~~~~ In file included from /usr/include/pipewire-0.3/pipewire/context.h:48, from /usr/include/pipewire-0.3/pipewire/protocol.h:26, from /usr/include/pipewire-0.3/pipewire/proxy.h:90: /usr/include/pipewire-0.3/pipewire/core.h: In function 'int pw_core_errorv(pw_core*, uint32_t, int, int, const char*, __va_list_tag*)': /usr/include/pipewire-0.3/pipewire/core.h:338:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 338 | ({ \ | ^ /usr/include/pipewire-0.3/pipewire/core.h:350:41: note: in expansion of macro 'pw_core_method' 350 | #define pw_core_error(c,...) pw_core_method(c,error,0,__VA_ARGS__) | ^~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:361:16: note: in expansion of macro 'pw_core_error' 361 | return pw_core_error(core, id, seq, res, buffer); | ^~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:340:9: note: in expansion of macro 'spa_interface_call_res' 340 | spa_interface_call_res((struct spa_interface*)o, \ | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:350:41: note: in expansion of macro 'pw_core_method' 350 | #define pw_core_error(c,...) pw_core_method(c,error,0,__VA_ARGS__) | ^~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:361:16: note: in expansion of macro 'pw_core_error' 361 | return pw_core_error(core, id, seq, res, buffer); | ^~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h: In function 'pw_registry* pw_core_get_registry(pw_core*, uint32_t, size_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:381:9: note: in expansion of macro 'spa_interface_call_res' 381 | spa_interface_call_res((struct spa_interface*)core, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h: In function 'void* pw_core_create_object(pw_core*, const char*, const char*, uint32_t, const spa_dict*, size_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:396:9: note: in expansion of macro 'spa_interface_call_res' 396 | spa_interface_call_res((struct spa_interface*)core, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h: In function 'void* pw_registry_bind(pw_registry*, uint32_t, const char*, uint32_t, size_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:537:9: note: in expansion of macro 'spa_interface_call_res' 537 | spa_interface_call_res((struct spa_interface*)registry, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/log.h: In function 'void spa_log_topic_init(spa_log*, spa_log_topic*)': /usr/include/spa-0.2/spa/utils/hook.h:157:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 157 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:230:9: note: in expansion of macro 'spa_callbacks_call' 230 | spa_callbacks_call(&(iface)->cb,method_type,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/log.h:221:9: note: in expansion of macro 'spa_interface_call' 221 | spa_interface_call(&log->iface, struct spa_log_methods, topic_init, 1, topic); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'spa_thread* spa_thread_utils_create(spa_thread_utils*, const spa_dict*, void* (*)(void*), void*)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:65:9: note: in expansion of macro 'spa_interface_call_res' 65 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_join(spa_thread_utils*, spa_thread*, void**)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:77:9: note: in expansion of macro 'spa_interface_call_res' 77 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_get_rt_range(spa_thread_utils*, const spa_dict*, int*, int*)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:89:9: note: in expansion of macro 'spa_interface_call_res' 89 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_acquire_rt(spa_thread_utils*, spa_thread*, int)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:101:9: note: in expansion of macro 'spa_interface_call_res' 101 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_drop_rt(spa_thread_utils*, spa_thread*)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:113:9: note: in expansion of macro 'spa_interface_call_res' 113 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/iter.h: In function 'uint32_t spa_pod_copy_array(const spa_pod*, uint32_t, void*, uint32_t)': /usr/include/spa-0.2/spa/utils/defs.h:147:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 147 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/iter.h:337:20: note: in expansion of macro 'SPA_MIN' 337 | n_values = SPA_MIN(n_values, max_values); | ^~~~~~~ /usr/include/spa-0.2/spa/pod/iter.h: In function 'spa_pod* spa_pod_get_values(const spa_pod*, uint32_t*, uint32_t*)': /usr/include/spa-0.2/spa/utils/defs.h:147:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 147 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/iter.h:353:35: note: in expansion of macro 'SPA_MIN' 353 | *n_vals = SPA_MIN(1u, SPA_POD_CHOICE_N_VALUES(pod)); | ^~~~~~~ In file included from /usr/include/spa-0.2/spa/param/format-utils.h:18, from /opt/kde/src/kpipewire/src/pipewireproduce_p.h:14: /usr/include/spa-0.2/spa/pod/parser.h: In function 'void spa_pod_parser_init(spa_pod_parser*, const void*, uint32_t)': /usr/include/spa-0.2/spa/pod/parser.h:36:94: warning: ISO C++ forbids compound-literals [-Wpedantic] 36 | #define SPA_POD_PARSER_INIT(buffer,size) ((struct spa_pod_parser){ (buffer), (size), 0, {0} }) | ^ /usr/include/spa-0.2/spa/pod/parser.h:41:19: note: in expansion of macro 'SPA_POD_PARSER_INIT' 41 | *parser = SPA_POD_PARSER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:36:94: warning: missing initializer for member 'spa_pod_parser_state::flags' [-Wmissing-field-initializers] 36 | #define SPA_POD_PARSER_INIT(buffer,size) ((struct spa_pod_parser){ (buffer), (size), 0, {0} }) | ^ /usr/include/spa-0.2/spa/pod/parser.h:41:19: note: in expansion of macro 'SPA_POD_PARSER_INIT' 41 | *parser = SPA_POD_PARSER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:36:94: warning: missing initializer for member 'spa_pod_parser_state::frame' [-Wmissing-field-initializers] 36 | #define SPA_POD_PARSER_INIT(buffer,size) ((struct spa_pod_parser){ (buffer), (size), 0, {0} }) | ^ /usr/include/spa-0.2/spa/pod/parser.h:41:19: note: in expansion of macro 'SPA_POD_PARSER_INIT' 41 | *parser = SPA_POD_PARSER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/format-utils.h: In function 'int spa_format_parse(const spa_pod*, uint32_t*, uint32_t*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/format-utils.h:24:16: note: in expansion of macro 'spa_pod_parse_object' 24 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/format-utils.h:24:16: note: in expansion of macro 'spa_pod_parse_object' 24 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'void spa_pod_builder_set_callbacks(spa_pod_builder*, const spa_pod_builder_callbacks*, void*)': /usr/include/spa-0.2/spa/utils/hook.h:125:86: warning: ISO C++ forbids compound-literals [-Wpedantic] 125 | #define SPA_CALLBACKS_INIT(_funcs,_data) ((struct spa_callbacks){ (_funcs), (_data), }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:64:30: note: in expansion of macro 'SPA_CALLBACKS_INIT' 64 | builder->callbacks = SPA_CALLBACKS_INIT(callbacks, data); | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/spa-0.2/spa/param/video/raw-utils.h:18, from /usr/include/spa-0.2/spa/param/video/format-utils.h:14, from /opt/kde/src/kpipewire/src/pipewireproduce_p.h:16: /usr/include/spa-0.2/spa/pod/builder.h: In function 'void spa_pod_builder_init(spa_pod_builder*, void*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: ISO C++ forbids compound-literals [-Wpedantic] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: missing initializer for member 'spa_pod_builder_state::flags' [-Wmissing-field-initializers] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: missing initializer for member 'spa_pod_builder_state::frame' [-Wmissing-field-initializers] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: missing initializer for member 'spa_callbacks::data' [-Wmissing-field-initializers] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_raw(spa_pod_builder*, const void*, uint32_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/builder.h:127:25: note: in expansion of macro 'spa_callbacks_call_res' 127 | spa_callbacks_call_res(&builder->callbacks, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_primitive(spa_pod_builder*, const spa_pod*)': /usr/include/spa-0.2/spa/utils/defs.h:83:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 83 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/builder.h:188:17: note: in expansion of macro 'SPA_FLAG_CLEAR' 188 | SPA_FLAG_CLEAR(builder->state.flags, SPA_POD_BUILDER_FLAG_FIRST); | ^~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_none(spa_pod_builder*)': /usr/include/spa-0.2/spa/pod/builder.h:197:68: warning: ISO C++ forbids compound-literals [-Wpedantic] 197 | #define SPA_POD_INIT(size,type) ((struct spa_pod) { (size), (type) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:199:29: note: in expansion of macro 'SPA_POD_INIT' 199 | #define SPA_POD_INIT_None() SPA_POD_INIT(0, SPA_TYPE_None) | ^~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:203:34: note: in expansion of macro 'SPA_POD_INIT_None' 203 | const struct spa_pod p = SPA_POD_INIT_None(); | ^~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_child(spa_pod_builder*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:197:68: warning: ISO C++ forbids compound-literals [-Wpedantic] 197 | #define SPA_POD_INIT(size,type) ((struct spa_pod) { (size), (type) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:209:34: note: in expansion of macro 'SPA_POD_INIT' 209 | const struct spa_pod p = SPA_POD_INIT(size,type); | ^~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/defs.h:83:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 83 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/builder.h:210:9: note: in expansion of macro 'SPA_FLAG_CLEAR' 210 | SPA_FLAG_CLEAR(builder->state.flags, SPA_POD_BUILDER_FLAG_FIRST); | ^~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_bool(spa_pod_builder*, bool)': /usr/include/spa-0.2/spa/pod/builder.h:214:110: warning: ISO C++ forbids compound-literals [-Wpedantic] 214 | #define SPA_POD_INIT_Bool(val) ((struct spa_pod_bool){ { sizeof(uint32_t), SPA_TYPE_Bool }, (val) ? 1 : 0, 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:218:39: note: in expansion of macro 'SPA_POD_INIT_Bool' 218 | const struct spa_pod_bool p = SPA_POD_INIT_Bool(val); | ^~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_id(spa_pod_builder*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:222:96: warning: ISO C++ forbids compound-literals [-Wpedantic] 222 | #define SPA_POD_INIT_Id(val) ((struct spa_pod_id){ { sizeof(uint32_t), SPA_TYPE_Id }, (val), 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:226:37: note: in expansion of macro 'SPA_POD_INIT_Id' 226 | const struct spa_pod_id p = SPA_POD_INIT_Id(val); | ^~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_int(spa_pod_builder*, int32_t)': /usr/include/spa-0.2/spa/pod/builder.h:230:98: warning: ISO C++ forbids compound-literals [-Wpedantic] 230 | #define SPA_POD_INIT_Int(val) ((struct spa_pod_int){ { sizeof(int32_t), SPA_TYPE_Int }, (val), 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:234:38: note: in expansion of macro 'SPA_POD_INIT_Int' 234 | const struct spa_pod_int p = SPA_POD_INIT_Int(val); | ^~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_long(spa_pod_builder*, int64_t)': /usr/include/spa-0.2/spa/pod/builder.h:238:98: warning: ISO C++ forbids compound-literals [-Wpedantic] 238 | #define SPA_POD_INIT_Long(val) ((struct spa_pod_long){ { sizeof(int64_t), SPA_TYPE_Long }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:242:39: note: in expansion of macro 'SPA_POD_INIT_Long' 242 | const struct spa_pod_long p = SPA_POD_INIT_Long(val); | ^~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_float(spa_pod_builder*, float)': /usr/include/spa-0.2/spa/pod/builder.h:246:102: warning: ISO C++ forbids compound-literals [-Wpedantic] 246 | #define SPA_POD_INIT_Float(val) ((struct spa_pod_float){ { sizeof(float), SPA_TYPE_Float }, (val), 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:250:40: note: in expansion of macro 'SPA_POD_INIT_Float' 250 | const struct spa_pod_float p = SPA_POD_INIT_Float(val); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_double(spa_pod_builder*, double)': /usr/include/spa-0.2/spa/pod/builder.h:254:103: warning: ISO C++ forbids compound-literals [-Wpedantic] 254 | #define SPA_POD_INIT_Double(val) ((struct spa_pod_double){ { sizeof(double), SPA_TYPE_Double }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:258:41: note: in expansion of macro 'SPA_POD_INIT_Double' 258 | const struct spa_pod_double p = SPA_POD_INIT_Double(val); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_string_len(spa_pod_builder*, const char*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:262:87: warning: ISO C++ forbids compound-literals [-Wpedantic] 262 | #define SPA_POD_INIT_String(len) ((struct spa_pod_string){ { (len), SPA_TYPE_String } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:279:41: note: in expansion of macro 'SPA_POD_INIT_String' 279 | const struct spa_pod_string p = SPA_POD_INIT_String(len+1); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_bytes(spa_pod_builder*, const void*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:292:84: warning: ISO C++ forbids compound-literals [-Wpedantic] 292 | #define SPA_POD_INIT_Bytes(len) ((struct spa_pod_bytes){ { (len), SPA_TYPE_Bytes } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:297:40: note: in expansion of macro 'SPA_POD_INIT_Bytes' 297 | const struct spa_pod_bytes p = SPA_POD_INIT_Bytes(len); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_pointer(spa_pod_builder*, uint32_t, const void*)': /usr/include/spa-0.2/spa/pod/builder.h:312:151: warning: ISO C++ forbids compound-literals [-Wpedantic] 312 | #define SPA_POD_INIT_Pointer(type,value) ((struct spa_pod_pointer){ { sizeof(struct spa_pod_pointer_body), SPA_TYPE_Pointer }, { (type), 0, (value) } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:317:42: note: in expansion of macro 'SPA_POD_INIT_Pointer' 317 | const struct spa_pod_pointer p = SPA_POD_INIT_Pointer(type, val); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_fd(spa_pod_builder*, int64_t)': /usr/include/spa-0.2/spa/pod/builder.h:321:90: warning: ISO C++ forbids compound-literals [-Wpedantic] 321 | #define SPA_POD_INIT_Fd(fd) ((struct spa_pod_fd){ { sizeof(int64_t), SPA_TYPE_Fd }, (fd) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:325:37: note: in expansion of macro 'SPA_POD_INIT_Fd' 325 | const struct spa_pod_fd p = SPA_POD_INIT_Fd(fd); | ^~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_rectangle(spa_pod_builder*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/utils/defs.h:100:80: warning: ISO C++ forbids compound-literals [-Wpedantic] 100 | #define SPA_RECTANGLE(width,height) ((struct spa_rectangle){ (width), (height) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:329:121: note: in definition of macro 'SPA_POD_INIT_Rectangle' 329 | #define SPA_POD_INIT_Rectangle(val) ((struct spa_pod_rectangle){ { sizeof(struct spa_rectangle), SPA_TYPE_Rectangle }, (val) }) | ^~~ /usr/include/spa-0.2/spa/pod/builder.h:334:67: note: in expansion of macro 'SPA_RECTANGLE' 334 | const struct spa_pod_rectangle p = SPA_POD_INIT_Rectangle(SPA_RECTANGLE(width, height)); | ^~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:329:126: warning: ISO C++ forbids compound-literals [-Wpedantic] 329 | #define SPA_POD_INIT_Rectangle(val) ((struct spa_pod_rectangle){ { sizeof(struct spa_rectangle), SPA_TYPE_Rectangle }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:334:44: note: in expansion of macro 'SPA_POD_INIT_Rectangle' 334 | const struct spa_pod_rectangle p = SPA_POD_INIT_Rectangle(SPA_RECTANGLE(width, height)); | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_fraction(spa_pod_builder*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/utils/defs.h:118:72: warning: ISO C++ forbids compound-literals [-Wpedantic] 118 | #define SPA_FRACTION(num,denom) ((struct spa_fraction){ (num), (denom) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:338:117: note: in definition of macro 'SPA_POD_INIT_Fraction' 338 | #define SPA_POD_INIT_Fraction(val) ((struct spa_pod_fraction){ { sizeof(struct spa_fraction), SPA_TYPE_Fraction }, (val) }) | ^~~ /usr/include/spa-0.2/spa/pod/builder.h:343:65: note: in expansion of macro 'SPA_FRACTION' 343 | const struct spa_pod_fraction p = SPA_POD_INIT_Fraction(SPA_FRACTION(num, denom)); | ^~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:338:122: warning: ISO C++ forbids compound-literals [-Wpedantic] 338 | #define SPA_POD_INIT_Fraction(val) ((struct spa_pod_fraction){ { sizeof(struct spa_fraction), SPA_TYPE_Fraction }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:343:43: note: in expansion of macro 'SPA_POD_INIT_Fraction' 343 | const struct spa_pod_fraction p = SPA_POD_INIT_Fraction(SPA_FRACTION(num, denom)); | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_push_struct(spa_pod_builder*, spa_pod_frame*)': /usr/include/spa-0.2/spa/pod/builder.h:394:89: warning: ISO C++ forbids compound-literals [-Wpedantic] 394 | #define SPA_POD_INIT_Struct(size) ((struct spa_pod_struct){ { (size), SPA_TYPE_Struct } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:399:41: note: in expansion of macro 'SPA_POD_INIT_Struct' 399 | const struct spa_pod_struct p = SPA_POD_INIT_Struct(0); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_push_object(spa_pod_builder*, spa_pod_frame*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:406:136: warning: ISO C++ forbids compound-literals [-Wpedantic] 406 | #define SPA_POD_INIT_Object(size,type,id,...) ((struct spa_pod_object){ { (size), SPA_TYPE_Object }, { (type), (id) }, ##__VA_ARGS__ }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:413:13: note: in expansion of macro 'SPA_POD_INIT_Object' 413 | SPA_POD_INIT_Object(sizeof(struct spa_pod_object_body), type, id); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_push_sequence(spa_pod_builder*, spa_pod_frame*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:431:80: warning: ISO C++ forbids compound-literals [-Wpedantic] 431 | ((struct spa_pod_sequence){ { (size), SPA_TYPE_Sequence}, {(unit), 0 } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:437:13: note: in expansion of macro 'SPA_POD_INIT_Sequence' 437 | SPA_POD_INIT_Sequence(sizeof(struct spa_pod_sequence_body), unit); | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/raw-utils.h: In function 'int spa_format_video_raw_parse(const spa_pod*, spa_video_info_raw*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/raw-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/raw-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/dsp-utils.h: In function 'int spa_format_video_dsp_parse(const spa_pod*, spa_video_info_dsp*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/dsp-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/dsp-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/h264-utils.h: In function 'int spa_format_video_h264_parse(const spa_pod*, spa_video_info_h264*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/h264-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/h264-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/mjpg-utils.h: In function 'int spa_format_video_mjpg_parse(const spa_pod*, spa_video_info_mjpg*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/mjpg-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/mjpg-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ At global scope: cc1plus: note: unrecognized command-line option '-Wno-c99-extensions' may have been intended to silence earlier diagnostics cc1plus: note: unrecognized command-line option '-Wno-gnu-statement-expression-from-macro-expansion' may have been intended to silence earlier diagnostics [76/113] Building CXX object src/CMakeFiles/KPipeWireRecord.dir/encoder.cpp.o In file included from /usr/include/spa-0.2/spa/support/plugin.h:13, from /usr/include/pipewire-0.3/pipewire/pipewire.h:12, from /opt/kde/src/kpipewire/src/pipewiresourcestream.h:20, from /opt/kde/src/kpipewire/src/dmabufhandler.h:11, from /opt/kde/src/kpipewire/src/encoder_p.h:15, from /opt/kde/src/kpipewire/src/encoder.cpp:9: /usr/include/spa-0.2/spa/utils/dict.h: In function 'const spa_dict_item* spa_dict_lookup_item(const spa_dict*, const char*)': /usr/include/spa-0.2/spa/utils/dict.h:31:80: warning: ISO C++ forbids compound-literals [-Wpedantic] 31 | #define SPA_DICT_ITEM_INIT(key,value) ((struct spa_dict_item) { (key), (value) }) | ^ /usr/include/spa-0.2/spa/utils/dict.h:70:42: note: in expansion of macro 'SPA_DICT_ITEM_INIT' 70 | struct spa_dict_item k = SPA_DICT_ITEM_INIT(key, NULL); | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/spa-0.2/spa/support/plugin.h:12: /usr/include/pipewire-0.3/pipewire/array.h: In function 'int pw_array_ensure_size(pw_array*, size_t)': /usr/include/spa-0.2/spa/utils/defs.h:271:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 271 | ({ \ | ^ /usr/include/pipewire-0.3/pipewire/array.h:115:25: note: in expansion of macro 'SPA_ROUND_UP' 115 | alloc = SPA_ROUND_UP(need, arr->extend); | ^~~~~~~~~~~~ In file included from /usr/include/spa-0.2/spa/utils/hook.h:13, from /usr/include/pipewire-0.3/pipewire/proxy.h:12, from /usr/include/pipewire-0.3/pipewire/client.h:15, from /usr/include/pipewire-0.3/pipewire/pipewire.h:15: /usr/include/spa-0.2/spa/utils/list.h: In function 'void spa_list_init(spa_list*)': /usr/include/spa-0.2/spa/utils/list.h:27:64: warning: ISO C++ forbids compound-literals [-Wpedantic] 27 | #define SPA_LIST_INIT(list) ((struct spa_list){ (list), (list) }) | ^ /usr/include/spa-0.2/spa/utils/list.h:31:17: note: in expansion of macro 'SPA_LIST_INIT' 31 | *list = SPA_LIST_INIT(list); | ^~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/hook.h: In function 'void spa_hook_list_append(spa_hook_list*, spa_hook*, const void*, void*)': /usr/include/spa-0.2/spa/utils/hook.h:125:86: warning: ISO C++ forbids compound-literals [-Wpedantic] 125 | #define SPA_CALLBACKS_INIT(_funcs,_data) ((struct spa_callbacks){ (_funcs), (_data), }) | ^ /usr/include/spa-0.2/spa/utils/hook.h:367:20: note: in expansion of macro 'SPA_CALLBACKS_INIT' 367 | hook->cb = SPA_CALLBACKS_INIT(funcs, data); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/hook.h: In function 'void spa_hook_list_prepend(spa_hook_list*, spa_hook*, const void*, void*)': /usr/include/spa-0.2/spa/utils/hook.h:125:86: warning: ISO C++ forbids compound-literals [-Wpedantic] 125 | #define SPA_CALLBACKS_INIT(_funcs,_data) ((struct spa_callbacks){ (_funcs), (_data), }) | ^ /usr/include/spa-0.2/spa/utils/hook.h:377:20: note: in expansion of macro 'SPA_CALLBACKS_INIT' 377 | hook->cb = SPA_CALLBACKS_INIT(funcs, data); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/string.h: In function 'int spa_strbuf_append(spa_strbuf*, const char*, ...)': /usr/include/spa-0.2/spa/utils/defs.h:147:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 147 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/string.h:384:29: note: in expansion of macro 'SPA_MIN' 384 | buf->pos += SPA_MIN(remain, (size_t)written); | ^~~~~~~ In file included from /usr/include/pipewire-0.3/pipewire/context.h:48, from /usr/include/pipewire-0.3/pipewire/protocol.h:26, from /usr/include/pipewire-0.3/pipewire/proxy.h:90: /usr/include/pipewire-0.3/pipewire/core.h: In function 'int pw_core_errorv(pw_core*, uint32_t, int, int, const char*, __va_list_tag*)': /usr/include/pipewire-0.3/pipewire/core.h:338:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 338 | ({ \ | ^ /usr/include/pipewire-0.3/pipewire/core.h:350:41: note: in expansion of macro 'pw_core_method' 350 | #define pw_core_error(c,...) pw_core_method(c,error,0,__VA_ARGS__) | ^~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:361:16: note: in expansion of macro 'pw_core_error' 361 | return pw_core_error(core, id, seq, res, buffer); | ^~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:340:9: note: in expansion of macro 'spa_interface_call_res' 340 | spa_interface_call_res((struct spa_interface*)o, \ | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:350:41: note: in expansion of macro 'pw_core_method' 350 | #define pw_core_error(c,...) pw_core_method(c,error,0,__VA_ARGS__) | ^~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:361:16: note: in expansion of macro 'pw_core_error' 361 | return pw_core_error(core, id, seq, res, buffer); | ^~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h: In function 'pw_registry* pw_core_get_registry(pw_core*, uint32_t, size_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:381:9: note: in expansion of macro 'spa_interface_call_res' 381 | spa_interface_call_res((struct spa_interface*)core, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h: In function 'void* pw_core_create_object(pw_core*, const char*, const char*, uint32_t, const spa_dict*, size_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:396:9: note: in expansion of macro 'spa_interface_call_res' 396 | spa_interface_call_res((struct spa_interface*)core, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h: In function 'void* pw_registry_bind(pw_registry*, uint32_t, const char*, uint32_t, size_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:537:9: note: in expansion of macro 'spa_interface_call_res' 537 | spa_interface_call_res((struct spa_interface*)registry, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/log.h: In function 'void spa_log_topic_init(spa_log*, spa_log_topic*)': /usr/include/spa-0.2/spa/utils/hook.h:157:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 157 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:230:9: note: in expansion of macro 'spa_callbacks_call' 230 | spa_callbacks_call(&(iface)->cb,method_type,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/log.h:221:9: note: in expansion of macro 'spa_interface_call' 221 | spa_interface_call(&log->iface, struct spa_log_methods, topic_init, 1, topic); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'spa_thread* spa_thread_utils_create(spa_thread_utils*, const spa_dict*, void* (*)(void*), void*)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:65:9: note: in expansion of macro 'spa_interface_call_res' 65 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_join(spa_thread_utils*, spa_thread*, void**)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:77:9: note: in expansion of macro 'spa_interface_call_res' 77 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_get_rt_range(spa_thread_utils*, const spa_dict*, int*, int*)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:89:9: note: in expansion of macro 'spa_interface_call_res' 89 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_acquire_rt(spa_thread_utils*, spa_thread*, int)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:101:9: note: in expansion of macro 'spa_interface_call_res' 101 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_drop_rt(spa_thread_utils*, spa_thread*)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:113:9: note: in expansion of macro 'spa_interface_call_res' 113 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/iter.h: In function 'uint32_t spa_pod_copy_array(const spa_pod*, uint32_t, void*, uint32_t)': /usr/include/spa-0.2/spa/utils/defs.h:147:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 147 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/iter.h:337:20: note: in expansion of macro 'SPA_MIN' 337 | n_values = SPA_MIN(n_values, max_values); | ^~~~~~~ /usr/include/spa-0.2/spa/pod/iter.h: In function 'spa_pod* spa_pod_get_values(const spa_pod*, uint32_t*, uint32_t*)': /usr/include/spa-0.2/spa/utils/defs.h:147:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 147 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/iter.h:353:35: note: in expansion of macro 'SPA_MIN' 353 | *n_vals = SPA_MIN(1u, SPA_POD_CHOICE_N_VALUES(pod)); | ^~~~~~~ In file included from /usr/include/spa-0.2/spa/param/format-utils.h:18, from /opt/kde/src/kpipewire/src/pipewiresourcestream.h:21: /usr/include/spa-0.2/spa/pod/parser.h: In function 'void spa_pod_parser_init(spa_pod_parser*, const void*, uint32_t)': /usr/include/spa-0.2/spa/pod/parser.h:36:94: warning: ISO C++ forbids compound-literals [-Wpedantic] 36 | #define SPA_POD_PARSER_INIT(buffer,size) ((struct spa_pod_parser){ (buffer), (size), 0, {0} }) | ^ /usr/include/spa-0.2/spa/pod/parser.h:41:19: note: in expansion of macro 'SPA_POD_PARSER_INIT' 41 | *parser = SPA_POD_PARSER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:36:94: warning: missing initializer for member 'spa_pod_parser_state::flags' [-Wmissing-field-initializers] 36 | #define SPA_POD_PARSER_INIT(buffer,size) ((struct spa_pod_parser){ (buffer), (size), 0, {0} }) | ^ /usr/include/spa-0.2/spa/pod/parser.h:41:19: note: in expansion of macro 'SPA_POD_PARSER_INIT' 41 | *parser = SPA_POD_PARSER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:36:94: warning: missing initializer for member 'spa_pod_parser_state::frame' [-Wmissing-field-initializers] 36 | #define SPA_POD_PARSER_INIT(buffer,size) ((struct spa_pod_parser){ (buffer), (size), 0, {0} }) | ^ /usr/include/spa-0.2/spa/pod/parser.h:41:19: note: in expansion of macro 'SPA_POD_PARSER_INIT' 41 | *parser = SPA_POD_PARSER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/format-utils.h: In function 'int spa_format_parse(const spa_pod*, uint32_t*, uint32_t*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/format-utils.h:24:16: note: in expansion of macro 'spa_pod_parse_object' 24 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/format-utils.h:24:16: note: in expansion of macro 'spa_pod_parse_object' 24 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'void spa_pod_builder_set_callbacks(spa_pod_builder*, const spa_pod_builder_callbacks*, void*)': /usr/include/spa-0.2/spa/utils/hook.h:125:86: warning: ISO C++ forbids compound-literals [-Wpedantic] 125 | #define SPA_CALLBACKS_INIT(_funcs,_data) ((struct spa_callbacks){ (_funcs), (_data), }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:64:30: note: in expansion of macro 'SPA_CALLBACKS_INIT' 64 | builder->callbacks = SPA_CALLBACKS_INIT(callbacks, data); | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/spa-0.2/spa/param/video/raw-utils.h:18, from /usr/include/spa-0.2/spa/param/video/format-utils.h:14, from /opt/kde/src/kpipewire/src/pipewiresourcestream.h:23: /usr/include/spa-0.2/spa/pod/builder.h: In function 'void spa_pod_builder_init(spa_pod_builder*, void*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: ISO C++ forbids compound-literals [-Wpedantic] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: missing initializer for member 'spa_pod_builder_state::flags' [-Wmissing-field-initializers] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: missing initializer for member 'spa_pod_builder_state::frame' [-Wmissing-field-initializers] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: missing initializer for member 'spa_callbacks::data' [-Wmissing-field-initializers] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_raw(spa_pod_builder*, const void*, uint32_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/builder.h:127:25: note: in expansion of macro 'spa_callbacks_call_res' 127 | spa_callbacks_call_res(&builder->callbacks, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_primitive(spa_pod_builder*, const spa_pod*)': /usr/include/spa-0.2/spa/utils/defs.h:83:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 83 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/builder.h:188:17: note: in expansion of macro 'SPA_FLAG_CLEAR' 188 | SPA_FLAG_CLEAR(builder->state.flags, SPA_POD_BUILDER_FLAG_FIRST); | ^~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_none(spa_pod_builder*)': /usr/include/spa-0.2/spa/pod/builder.h:197:68: warning: ISO C++ forbids compound-literals [-Wpedantic] 197 | #define SPA_POD_INIT(size,type) ((struct spa_pod) { (size), (type) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:199:29: note: in expansion of macro 'SPA_POD_INIT' 199 | #define SPA_POD_INIT_None() SPA_POD_INIT(0, SPA_TYPE_None) | ^~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:203:34: note: in expansion of macro 'SPA_POD_INIT_None' 203 | const struct spa_pod p = SPA_POD_INIT_None(); | ^~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_child(spa_pod_builder*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:197:68: warning: ISO C++ forbids compound-literals [-Wpedantic] 197 | #define SPA_POD_INIT(size,type) ((struct spa_pod) { (size), (type) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:209:34: note: in expansion of macro 'SPA_POD_INIT' 209 | const struct spa_pod p = SPA_POD_INIT(size,type); | ^~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/defs.h:83:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 83 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/builder.h:210:9: note: in expansion of macro 'SPA_FLAG_CLEAR' 210 | SPA_FLAG_CLEAR(builder->state.flags, SPA_POD_BUILDER_FLAG_FIRST); | ^~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_bool(spa_pod_builder*, bool)': /usr/include/spa-0.2/spa/pod/builder.h:214:110: warning: ISO C++ forbids compound-literals [-Wpedantic] 214 | #define SPA_POD_INIT_Bool(val) ((struct spa_pod_bool){ { sizeof(uint32_t), SPA_TYPE_Bool }, (val) ? 1 : 0, 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:218:39: note: in expansion of macro 'SPA_POD_INIT_Bool' 218 | const struct spa_pod_bool p = SPA_POD_INIT_Bool(val); | ^~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_id(spa_pod_builder*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:222:96: warning: ISO C++ forbids compound-literals [-Wpedantic] 222 | #define SPA_POD_INIT_Id(val) ((struct spa_pod_id){ { sizeof(uint32_t), SPA_TYPE_Id }, (val), 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:226:37: note: in expansion of macro 'SPA_POD_INIT_Id' 226 | const struct spa_pod_id p = SPA_POD_INIT_Id(val); | ^~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_int(spa_pod_builder*, int32_t)': /usr/include/spa-0.2/spa/pod/builder.h:230:98: warning: ISO C++ forbids compound-literals [-Wpedantic] 230 | #define SPA_POD_INIT_Int(val) ((struct spa_pod_int){ { sizeof(int32_t), SPA_TYPE_Int }, (val), 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:234:38: note: in expansion of macro 'SPA_POD_INIT_Int' 234 | const struct spa_pod_int p = SPA_POD_INIT_Int(val); | ^~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_long(spa_pod_builder*, int64_t)': /usr/include/spa-0.2/spa/pod/builder.h:238:98: warning: ISO C++ forbids compound-literals [-Wpedantic] 238 | #define SPA_POD_INIT_Long(val) ((struct spa_pod_long){ { sizeof(int64_t), SPA_TYPE_Long }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:242:39: note: in expansion of macro 'SPA_POD_INIT_Long' 242 | const struct spa_pod_long p = SPA_POD_INIT_Long(val); | ^~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_float(spa_pod_builder*, float)': /usr/include/spa-0.2/spa/pod/builder.h:246:102: warning: ISO C++ forbids compound-literals [-Wpedantic] 246 | #define SPA_POD_INIT_Float(val) ((struct spa_pod_float){ { sizeof(float), SPA_TYPE_Float }, (val), 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:250:40: note: in expansion of macro 'SPA_POD_INIT_Float' 250 | const struct spa_pod_float p = SPA_POD_INIT_Float(val); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_double(spa_pod_builder*, double)': /usr/include/spa-0.2/spa/pod/builder.h:254:103: warning: ISO C++ forbids compound-literals [-Wpedantic] 254 | #define SPA_POD_INIT_Double(val) ((struct spa_pod_double){ { sizeof(double), SPA_TYPE_Double }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:258:41: note: in expansion of macro 'SPA_POD_INIT_Double' 258 | const struct spa_pod_double p = SPA_POD_INIT_Double(val); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_string_len(spa_pod_builder*, const char*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:262:87: warning: ISO C++ forbids compound-literals [-Wpedantic] 262 | #define SPA_POD_INIT_String(len) ((struct spa_pod_string){ { (len), SPA_TYPE_String } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:279:41: note: in expansion of macro 'SPA_POD_INIT_String' 279 | const struct spa_pod_string p = SPA_POD_INIT_String(len+1); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_bytes(spa_pod_builder*, const void*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:292:84: warning: ISO C++ forbids compound-literals [-Wpedantic] 292 | #define SPA_POD_INIT_Bytes(len) ((struct spa_pod_bytes){ { (len), SPA_TYPE_Bytes } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:297:40: note: in expansion of macro 'SPA_POD_INIT_Bytes' 297 | const struct spa_pod_bytes p = SPA_POD_INIT_Bytes(len); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_pointer(spa_pod_builder*, uint32_t, const void*)': /usr/include/spa-0.2/spa/pod/builder.h:312:151: warning: ISO C++ forbids compound-literals [-Wpedantic] 312 | #define SPA_POD_INIT_Pointer(type,value) ((struct spa_pod_pointer){ { sizeof(struct spa_pod_pointer_body), SPA_TYPE_Pointer }, { (type), 0, (value) } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:317:42: note: in expansion of macro 'SPA_POD_INIT_Pointer' 317 | const struct spa_pod_pointer p = SPA_POD_INIT_Pointer(type, val); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_fd(spa_pod_builder*, int64_t)': /usr/include/spa-0.2/spa/pod/builder.h:321:90: warning: ISO C++ forbids compound-literals [-Wpedantic] 321 | #define SPA_POD_INIT_Fd(fd) ((struct spa_pod_fd){ { sizeof(int64_t), SPA_TYPE_Fd }, (fd) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:325:37: note: in expansion of macro 'SPA_POD_INIT_Fd' 325 | const struct spa_pod_fd p = SPA_POD_INIT_Fd(fd); | ^~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_rectangle(spa_pod_builder*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/utils/defs.h:100:80: warning: ISO C++ forbids compound-literals [-Wpedantic] 100 | #define SPA_RECTANGLE(width,height) ((struct spa_rectangle){ (width), (height) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:329:121: note: in definition of macro 'SPA_POD_INIT_Rectangle' 329 | #define SPA_POD_INIT_Rectangle(val) ((struct spa_pod_rectangle){ { sizeof(struct spa_rectangle), SPA_TYPE_Rectangle }, (val) }) | ^~~ /usr/include/spa-0.2/spa/pod/builder.h:334:67: note: in expansion of macro 'SPA_RECTANGLE' 334 | const struct spa_pod_rectangle p = SPA_POD_INIT_Rectangle(SPA_RECTANGLE(width, height)); | ^~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:329:126: warning: ISO C++ forbids compound-literals [-Wpedantic] 329 | #define SPA_POD_INIT_Rectangle(val) ((struct spa_pod_rectangle){ { sizeof(struct spa_rectangle), SPA_TYPE_Rectangle }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:334:44: note: in expansion of macro 'SPA_POD_INIT_Rectangle' 334 | const struct spa_pod_rectangle p = SPA_POD_INIT_Rectangle(SPA_RECTANGLE(width, height)); | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_fraction(spa_pod_builder*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/utils/defs.h:118:72: warning: ISO C++ forbids compound-literals [-Wpedantic] 118 | #define SPA_FRACTION(num,denom) ((struct spa_fraction){ (num), (denom) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:338:117: note: in definition of macro 'SPA_POD_INIT_Fraction' 338 | #define SPA_POD_INIT_Fraction(val) ((struct spa_pod_fraction){ { sizeof(struct spa_fraction), SPA_TYPE_Fraction }, (val) }) | ^~~ /usr/include/spa-0.2/spa/pod/builder.h:343:65: note: in expansion of macro 'SPA_FRACTION' 343 | const struct spa_pod_fraction p = SPA_POD_INIT_Fraction(SPA_FRACTION(num, denom)); | ^~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:338:122: warning: ISO C++ forbids compound-literals [-Wpedantic] 338 | #define SPA_POD_INIT_Fraction(val) ((struct spa_pod_fraction){ { sizeof(struct spa_fraction), SPA_TYPE_Fraction }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:343:43: note: in expansion of macro 'SPA_POD_INIT_Fraction' 343 | const struct spa_pod_fraction p = SPA_POD_INIT_Fraction(SPA_FRACTION(num, denom)); | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_push_struct(spa_pod_builder*, spa_pod_frame*)': /usr/include/spa-0.2/spa/pod/builder.h:394:89: warning: ISO C++ forbids compound-literals [-Wpedantic] 394 | #define SPA_POD_INIT_Struct(size) ((struct spa_pod_struct){ { (size), SPA_TYPE_Struct } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:399:41: note: in expansion of macro 'SPA_POD_INIT_Struct' 399 | const struct spa_pod_struct p = SPA_POD_INIT_Struct(0); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_push_object(spa_pod_builder*, spa_pod_frame*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:406:136: warning: ISO C++ forbids compound-literals [-Wpedantic] 406 | #define SPA_POD_INIT_Object(size,type,id,...) ((struct spa_pod_object){ { (size), SPA_TYPE_Object }, { (type), (id) }, ##__VA_ARGS__ }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:413:13: note: in expansion of macro 'SPA_POD_INIT_Object' 413 | SPA_POD_INIT_Object(sizeof(struct spa_pod_object_body), type, id); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_push_sequence(spa_pod_builder*, spa_pod_frame*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:431:80: warning: ISO C++ forbids compound-literals [-Wpedantic] 431 | ((struct spa_pod_sequence){ { (size), SPA_TYPE_Sequence}, {(unit), 0 } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:437:13: note: in expansion of macro 'SPA_POD_INIT_Sequence' 437 | SPA_POD_INIT_Sequence(sizeof(struct spa_pod_sequence_body), unit); | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/raw-utils.h: In function 'int spa_format_video_raw_parse(const spa_pod*, spa_video_info_raw*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/raw-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/raw-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/dsp-utils.h: In function 'int spa_format_video_dsp_parse(const spa_pod*, spa_video_info_dsp*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/dsp-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/dsp-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/h264-utils.h: In function 'int spa_format_video_h264_parse(const spa_pod*, spa_video_info_h264*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/h264-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/h264-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/mjpg-utils.h: In function 'int spa_format_video_mjpg_parse(const spa_pod*, spa_video_info_mjpg*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/mjpg-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/mjpg-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /opt/kde/src/kpipewire/src/encoder.cpp: In destructor 'virtual Encoder::~Encoder()': /opt/kde/src/kpipewire/src/encoder.cpp:76:22: warning: 'int avcodec_close(AVCodecContext*)' is deprecated [-Wdeprecated-declarations] 76 | avcodec_close(m_avCodecContext); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ In file included from /opt/kde/src/kpipewire/src/encoder_p.h:19: /usr/include/libavcodec/avcodec.h:2398:5: note: declared here 2398 | int avcodec_close(AVCodecContext *avctx); | ^~~~~~~~~~~~~ At global scope: cc1plus: note: unrecognized command-line option '-Wno-c99-extensions' may have been intended to silence earlier diagnostics cc1plus: note: unrecognized command-line option '-Wno-gnu-statement-expression-from-macro-expansion' may have been intended to silence earlier diagnostics [77/113] Building CXX object src/CMakeFiles/KPipeWireRecord.dir/pipewirerecord.cpp.o In file included from /usr/include/spa-0.2/spa/support/plugin.h:13, from /usr/include/pipewire-0.3/pipewire/pipewire.h:12, from /opt/kde/src/kpipewire/src/pipewiresourcestream.h:20, from /opt/kde/src/kpipewire/src/dmabufhandler.h:11, from /opt/kde/src/kpipewire/src/encoder_p.h:15, from /opt/kde/src/kpipewire/src/pipewirerecord.cpp:8: /usr/include/spa-0.2/spa/utils/dict.h: In function 'const spa_dict_item* spa_dict_lookup_item(const spa_dict*, const char*)': /usr/include/spa-0.2/spa/utils/dict.h:31:80: warning: ISO C++ forbids compound-literals [-Wpedantic] 31 | #define SPA_DICT_ITEM_INIT(key,value) ((struct spa_dict_item) { (key), (value) }) | ^ /usr/include/spa-0.2/spa/utils/dict.h:70:42: note: in expansion of macro 'SPA_DICT_ITEM_INIT' 70 | struct spa_dict_item k = SPA_DICT_ITEM_INIT(key, NULL); | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/spa-0.2/spa/support/plugin.h:12: /usr/include/pipewire-0.3/pipewire/array.h: In function 'int pw_array_ensure_size(pw_array*, size_t)': /usr/include/spa-0.2/spa/utils/defs.h:271:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 271 | ({ \ | ^ /usr/include/pipewire-0.3/pipewire/array.h:115:25: note: in expansion of macro 'SPA_ROUND_UP' 115 | alloc = SPA_ROUND_UP(need, arr->extend); | ^~~~~~~~~~~~ In file included from /usr/include/spa-0.2/spa/utils/hook.h:13, from /usr/include/pipewire-0.3/pipewire/proxy.h:12, from /usr/include/pipewire-0.3/pipewire/client.h:15, from /usr/include/pipewire-0.3/pipewire/pipewire.h:15: /usr/include/spa-0.2/spa/utils/list.h: In function 'void spa_list_init(spa_list*)': /usr/include/spa-0.2/spa/utils/list.h:27:64: warning: ISO C++ forbids compound-literals [-Wpedantic] 27 | #define SPA_LIST_INIT(list) ((struct spa_list){ (list), (list) }) | ^ /usr/include/spa-0.2/spa/utils/list.h:31:17: note: in expansion of macro 'SPA_LIST_INIT' 31 | *list = SPA_LIST_INIT(list); | ^~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/hook.h: In function 'void spa_hook_list_append(spa_hook_list*, spa_hook*, const void*, void*)': /usr/include/spa-0.2/spa/utils/hook.h:125:86: warning: ISO C++ forbids compound-literals [-Wpedantic] 125 | #define SPA_CALLBACKS_INIT(_funcs,_data) ((struct spa_callbacks){ (_funcs), (_data), }) | ^ /usr/include/spa-0.2/spa/utils/hook.h:367:20: note: in expansion of macro 'SPA_CALLBACKS_INIT' 367 | hook->cb = SPA_CALLBACKS_INIT(funcs, data); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/hook.h: In function 'void spa_hook_list_prepend(spa_hook_list*, spa_hook*, const void*, void*)': /usr/include/spa-0.2/spa/utils/hook.h:125:86: warning: ISO C++ forbids compound-literals [-Wpedantic] 125 | #define SPA_CALLBACKS_INIT(_funcs,_data) ((struct spa_callbacks){ (_funcs), (_data), }) | ^ /usr/include/spa-0.2/spa/utils/hook.h:377:20: note: in expansion of macro 'SPA_CALLBACKS_INIT' 377 | hook->cb = SPA_CALLBACKS_INIT(funcs, data); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/string.h: In function 'int spa_strbuf_append(spa_strbuf*, const char*, ...)': /usr/include/spa-0.2/spa/utils/defs.h:147:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 147 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/string.h:384:29: note: in expansion of macro 'SPA_MIN' 384 | buf->pos += SPA_MIN(remain, (size_t)written); | ^~~~~~~ In file included from /usr/include/pipewire-0.3/pipewire/context.h:48, from /usr/include/pipewire-0.3/pipewire/protocol.h:26, from /usr/include/pipewire-0.3/pipewire/proxy.h:90: /usr/include/pipewire-0.3/pipewire/core.h: In function 'int pw_core_errorv(pw_core*, uint32_t, int, int, const char*, __va_list_tag*)': /usr/include/pipewire-0.3/pipewire/core.h:338:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 338 | ({ \ | ^ /usr/include/pipewire-0.3/pipewire/core.h:350:41: note: in expansion of macro 'pw_core_method' 350 | #define pw_core_error(c,...) pw_core_method(c,error,0,__VA_ARGS__) | ^~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:361:16: note: in expansion of macro 'pw_core_error' 361 | return pw_core_error(core, id, seq, res, buffer); | ^~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:340:9: note: in expansion of macro 'spa_interface_call_res' 340 | spa_interface_call_res((struct spa_interface*)o, \ | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:350:41: note: in expansion of macro 'pw_core_method' 350 | #define pw_core_error(c,...) pw_core_method(c,error,0,__VA_ARGS__) | ^~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:361:16: note: in expansion of macro 'pw_core_error' 361 | return pw_core_error(core, id, seq, res, buffer); | ^~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h: In function 'pw_registry* pw_core_get_registry(pw_core*, uint32_t, size_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:381:9: note: in expansion of macro 'spa_interface_call_res' 381 | spa_interface_call_res((struct spa_interface*)core, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h: In function 'void* pw_core_create_object(pw_core*, const char*, const char*, uint32_t, const spa_dict*, size_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:396:9: note: in expansion of macro 'spa_interface_call_res' 396 | spa_interface_call_res((struct spa_interface*)core, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h: In function 'void* pw_registry_bind(pw_registry*, uint32_t, const char*, uint32_t, size_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:537:9: note: in expansion of macro 'spa_interface_call_res' 537 | spa_interface_call_res((struct spa_interface*)registry, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/log.h: In function 'void spa_log_topic_init(spa_log*, spa_log_topic*)': /usr/include/spa-0.2/spa/utils/hook.h:157:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 157 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:230:9: note: in expansion of macro 'spa_callbacks_call' 230 | spa_callbacks_call(&(iface)->cb,method_type,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/log.h:221:9: note: in expansion of macro 'spa_interface_call' 221 | spa_interface_call(&log->iface, struct spa_log_methods, topic_init, 1, topic); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'spa_thread* spa_thread_utils_create(spa_thread_utils*, const spa_dict*, void* (*)(void*), void*)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:65:9: note: in expansion of macro 'spa_interface_call_res' 65 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_join(spa_thread_utils*, spa_thread*, void**)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:77:9: note: in expansion of macro 'spa_interface_call_res' 77 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_get_rt_range(spa_thread_utils*, const spa_dict*, int*, int*)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:89:9: note: in expansion of macro 'spa_interface_call_res' 89 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_acquire_rt(spa_thread_utils*, spa_thread*, int)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:101:9: note: in expansion of macro 'spa_interface_call_res' 101 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_drop_rt(spa_thread_utils*, spa_thread*)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:113:9: note: in expansion of macro 'spa_interface_call_res' 113 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/iter.h: In function 'uint32_t spa_pod_copy_array(const spa_pod*, uint32_t, void*, uint32_t)': /usr/include/spa-0.2/spa/utils/defs.h:147:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 147 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/iter.h:337:20: note: in expansion of macro 'SPA_MIN' 337 | n_values = SPA_MIN(n_values, max_values); | ^~~~~~~ /usr/include/spa-0.2/spa/pod/iter.h: In function 'spa_pod* spa_pod_get_values(const spa_pod*, uint32_t*, uint32_t*)': /usr/include/spa-0.2/spa/utils/defs.h:147:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 147 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/iter.h:353:35: note: in expansion of macro 'SPA_MIN' 353 | *n_vals = SPA_MIN(1u, SPA_POD_CHOICE_N_VALUES(pod)); | ^~~~~~~ In file included from /usr/include/spa-0.2/spa/param/format-utils.h:18, from /opt/kde/src/kpipewire/src/pipewiresourcestream.h:21: /usr/include/spa-0.2/spa/pod/parser.h: In function 'void spa_pod_parser_init(spa_pod_parser*, const void*, uint32_t)': /usr/include/spa-0.2/spa/pod/parser.h:36:94: warning: ISO C++ forbids compound-literals [-Wpedantic] 36 | #define SPA_POD_PARSER_INIT(buffer,size) ((struct spa_pod_parser){ (buffer), (size), 0, {0} }) | ^ /usr/include/spa-0.2/spa/pod/parser.h:41:19: note: in expansion of macro 'SPA_POD_PARSER_INIT' 41 | *parser = SPA_POD_PARSER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:36:94: warning: missing initializer for member 'spa_pod_parser_state::flags' [-Wmissing-field-initializers] 36 | #define SPA_POD_PARSER_INIT(buffer,size) ((struct spa_pod_parser){ (buffer), (size), 0, {0} }) | ^ /usr/include/spa-0.2/spa/pod/parser.h:41:19: note: in expansion of macro 'SPA_POD_PARSER_INIT' 41 | *parser = SPA_POD_PARSER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:36:94: warning: missing initializer for member 'spa_pod_parser_state::frame' [-Wmissing-field-initializers] 36 | #define SPA_POD_PARSER_INIT(buffer,size) ((struct spa_pod_parser){ (buffer), (size), 0, {0} }) | ^ /usr/include/spa-0.2/spa/pod/parser.h:41:19: note: in expansion of macro 'SPA_POD_PARSER_INIT' 41 | *parser = SPA_POD_PARSER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/format-utils.h: In function 'int spa_format_parse(const spa_pod*, uint32_t*, uint32_t*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/format-utils.h:24:16: note: in expansion of macro 'spa_pod_parse_object' 24 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/format-utils.h:24:16: note: in expansion of macro 'spa_pod_parse_object' 24 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'void spa_pod_builder_set_callbacks(spa_pod_builder*, const spa_pod_builder_callbacks*, void*)': /usr/include/spa-0.2/spa/utils/hook.h:125:86: warning: ISO C++ forbids compound-literals [-Wpedantic] 125 | #define SPA_CALLBACKS_INIT(_funcs,_data) ((struct spa_callbacks){ (_funcs), (_data), }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:64:30: note: in expansion of macro 'SPA_CALLBACKS_INIT' 64 | builder->callbacks = SPA_CALLBACKS_INIT(callbacks, data); | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/spa-0.2/spa/param/video/raw-utils.h:18, from /usr/include/spa-0.2/spa/param/video/format-utils.h:14, from /opt/kde/src/kpipewire/src/pipewiresourcestream.h:23: /usr/include/spa-0.2/spa/pod/builder.h: In function 'void spa_pod_builder_init(spa_pod_builder*, void*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: ISO C++ forbids compound-literals [-Wpedantic] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: missing initializer for member 'spa_pod_builder_state::flags' [-Wmissing-field-initializers] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: missing initializer for member 'spa_pod_builder_state::frame' [-Wmissing-field-initializers] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: missing initializer for member 'spa_callbacks::data' [-Wmissing-field-initializers] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_raw(spa_pod_builder*, const void*, uint32_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/builder.h:127:25: note: in expansion of macro 'spa_callbacks_call_res' 127 | spa_callbacks_call_res(&builder->callbacks, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_primitive(spa_pod_builder*, const spa_pod*)': /usr/include/spa-0.2/spa/utils/defs.h:83:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 83 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/builder.h:188:17: note: in expansion of macro 'SPA_FLAG_CLEAR' 188 | SPA_FLAG_CLEAR(builder->state.flags, SPA_POD_BUILDER_FLAG_FIRST); | ^~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_none(spa_pod_builder*)': /usr/include/spa-0.2/spa/pod/builder.h:197:68: warning: ISO C++ forbids compound-literals [-Wpedantic] 197 | #define SPA_POD_INIT(size,type) ((struct spa_pod) { (size), (type) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:199:29: note: in expansion of macro 'SPA_POD_INIT' 199 | #define SPA_POD_INIT_None() SPA_POD_INIT(0, SPA_TYPE_None) | ^~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:203:34: note: in expansion of macro 'SPA_POD_INIT_None' 203 | const struct spa_pod p = SPA_POD_INIT_None(); | ^~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_child(spa_pod_builder*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:197:68: warning: ISO C++ forbids compound-literals [-Wpedantic] 197 | #define SPA_POD_INIT(size,type) ((struct spa_pod) { (size), (type) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:209:34: note: in expansion of macro 'SPA_POD_INIT' 209 | const struct spa_pod p = SPA_POD_INIT(size,type); | ^~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/defs.h:83:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 83 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/builder.h:210:9: note: in expansion of macro 'SPA_FLAG_CLEAR' 210 | SPA_FLAG_CLEAR(builder->state.flags, SPA_POD_BUILDER_FLAG_FIRST); | ^~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_bool(spa_pod_builder*, bool)': /usr/include/spa-0.2/spa/pod/builder.h:214:110: warning: ISO C++ forbids compound-literals [-Wpedantic] 214 | #define SPA_POD_INIT_Bool(val) ((struct spa_pod_bool){ { sizeof(uint32_t), SPA_TYPE_Bool }, (val) ? 1 : 0, 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:218:39: note: in expansion of macro 'SPA_POD_INIT_Bool' 218 | const struct spa_pod_bool p = SPA_POD_INIT_Bool(val); | ^~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_id(spa_pod_builder*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:222:96: warning: ISO C++ forbids compound-literals [-Wpedantic] 222 | #define SPA_POD_INIT_Id(val) ((struct spa_pod_id){ { sizeof(uint32_t), SPA_TYPE_Id }, (val), 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:226:37: note: in expansion of macro 'SPA_POD_INIT_Id' 226 | const struct spa_pod_id p = SPA_POD_INIT_Id(val); | ^~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_int(spa_pod_builder*, int32_t)': /usr/include/spa-0.2/spa/pod/builder.h:230:98: warning: ISO C++ forbids compound-literals [-Wpedantic] 230 | #define SPA_POD_INIT_Int(val) ((struct spa_pod_int){ { sizeof(int32_t), SPA_TYPE_Int }, (val), 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:234:38: note: in expansion of macro 'SPA_POD_INIT_Int' 234 | const struct spa_pod_int p = SPA_POD_INIT_Int(val); | ^~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_long(spa_pod_builder*, int64_t)': /usr/include/spa-0.2/spa/pod/builder.h:238:98: warning: ISO C++ forbids compound-literals [-Wpedantic] 238 | #define SPA_POD_INIT_Long(val) ((struct spa_pod_long){ { sizeof(int64_t), SPA_TYPE_Long }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:242:39: note: in expansion of macro 'SPA_POD_INIT_Long' 242 | const struct spa_pod_long p = SPA_POD_INIT_Long(val); | ^~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_float(spa_pod_builder*, float)': /usr/include/spa-0.2/spa/pod/builder.h:246:102: warning: ISO C++ forbids compound-literals [-Wpedantic] 246 | #define SPA_POD_INIT_Float(val) ((struct spa_pod_float){ { sizeof(float), SPA_TYPE_Float }, (val), 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:250:40: note: in expansion of macro 'SPA_POD_INIT_Float' 250 | const struct spa_pod_float p = SPA_POD_INIT_Float(val); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_double(spa_pod_builder*, double)': /usr/include/spa-0.2/spa/pod/builder.h:254:103: warning: ISO C++ forbids compound-literals [-Wpedantic] 254 | #define SPA_POD_INIT_Double(val) ((struct spa_pod_double){ { sizeof(double), SPA_TYPE_Double }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:258:41: note: in expansion of macro 'SPA_POD_INIT_Double' 258 | const struct spa_pod_double p = SPA_POD_INIT_Double(val); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_string_len(spa_pod_builder*, const char*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:262:87: warning: ISO C++ forbids compound-literals [-Wpedantic] 262 | #define SPA_POD_INIT_String(len) ((struct spa_pod_string){ { (len), SPA_TYPE_String } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:279:41: note: in expansion of macro 'SPA_POD_INIT_String' 279 | const struct spa_pod_string p = SPA_POD_INIT_String(len+1); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_bytes(spa_pod_builder*, const void*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:292:84: warning: ISO C++ forbids compound-literals [-Wpedantic] 292 | #define SPA_POD_INIT_Bytes(len) ((struct spa_pod_bytes){ { (len), SPA_TYPE_Bytes } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:297:40: note: in expansion of macro 'SPA_POD_INIT_Bytes' 297 | const struct spa_pod_bytes p = SPA_POD_INIT_Bytes(len); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_pointer(spa_pod_builder*, uint32_t, const void*)': /usr/include/spa-0.2/spa/pod/builder.h:312:151: warning: ISO C++ forbids compound-literals [-Wpedantic] 312 | #define SPA_POD_INIT_Pointer(type,value) ((struct spa_pod_pointer){ { sizeof(struct spa_pod_pointer_body), SPA_TYPE_Pointer }, { (type), 0, (value) } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:317:42: note: in expansion of macro 'SPA_POD_INIT_Pointer' 317 | const struct spa_pod_pointer p = SPA_POD_INIT_Pointer(type, val); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_fd(spa_pod_builder*, int64_t)': /usr/include/spa-0.2/spa/pod/builder.h:321:90: warning: ISO C++ forbids compound-literals [-Wpedantic] 321 | #define SPA_POD_INIT_Fd(fd) ((struct spa_pod_fd){ { sizeof(int64_t), SPA_TYPE_Fd }, (fd) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:325:37: note: in expansion of macro 'SPA_POD_INIT_Fd' 325 | const struct spa_pod_fd p = SPA_POD_INIT_Fd(fd); | ^~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_rectangle(spa_pod_builder*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/utils/defs.h:100:80: warning: ISO C++ forbids compound-literals [-Wpedantic] 100 | #define SPA_RECTANGLE(width,height) ((struct spa_rectangle){ (width), (height) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:329:121: note: in definition of macro 'SPA_POD_INIT_Rectangle' 329 | #define SPA_POD_INIT_Rectangle(val) ((struct spa_pod_rectangle){ { sizeof(struct spa_rectangle), SPA_TYPE_Rectangle }, (val) }) | ^~~ /usr/include/spa-0.2/spa/pod/builder.h:334:67: note: in expansion of macro 'SPA_RECTANGLE' 334 | const struct spa_pod_rectangle p = SPA_POD_INIT_Rectangle(SPA_RECTANGLE(width, height)); | ^~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:329:126: warning: ISO C++ forbids compound-literals [-Wpedantic] 329 | #define SPA_POD_INIT_Rectangle(val) ((struct spa_pod_rectangle){ { sizeof(struct spa_rectangle), SPA_TYPE_Rectangle }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:334:44: note: in expansion of macro 'SPA_POD_INIT_Rectangle' 334 | const struct spa_pod_rectangle p = SPA_POD_INIT_Rectangle(SPA_RECTANGLE(width, height)); | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_fraction(spa_pod_builder*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/utils/defs.h:118:72: warning: ISO C++ forbids compound-literals [-Wpedantic] 118 | #define SPA_FRACTION(num,denom) ((struct spa_fraction){ (num), (denom) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:338:117: note: in definition of macro 'SPA_POD_INIT_Fraction' 338 | #define SPA_POD_INIT_Fraction(val) ((struct spa_pod_fraction){ { sizeof(struct spa_fraction), SPA_TYPE_Fraction }, (val) }) | ^~~ /usr/include/spa-0.2/spa/pod/builder.h:343:65: note: in expansion of macro 'SPA_FRACTION' 343 | const struct spa_pod_fraction p = SPA_POD_INIT_Fraction(SPA_FRACTION(num, denom)); | ^~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:338:122: warning: ISO C++ forbids compound-literals [-Wpedantic] 338 | #define SPA_POD_INIT_Fraction(val) ((struct spa_pod_fraction){ { sizeof(struct spa_fraction), SPA_TYPE_Fraction }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:343:43: note: in expansion of macro 'SPA_POD_INIT_Fraction' 343 | const struct spa_pod_fraction p = SPA_POD_INIT_Fraction(SPA_FRACTION(num, denom)); | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_push_struct(spa_pod_builder*, spa_pod_frame*)': /usr/include/spa-0.2/spa/pod/builder.h:394:89: warning: ISO C++ forbids compound-literals [-Wpedantic] 394 | #define SPA_POD_INIT_Struct(size) ((struct spa_pod_struct){ { (size), SPA_TYPE_Struct } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:399:41: note: in expansion of macro 'SPA_POD_INIT_Struct' 399 | const struct spa_pod_struct p = SPA_POD_INIT_Struct(0); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_push_object(spa_pod_builder*, spa_pod_frame*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:406:136: warning: ISO C++ forbids compound-literals [-Wpedantic] 406 | #define SPA_POD_INIT_Object(size,type,id,...) ((struct spa_pod_object){ { (size), SPA_TYPE_Object }, { (type), (id) }, ##__VA_ARGS__ }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:413:13: note: in expansion of macro 'SPA_POD_INIT_Object' 413 | SPA_POD_INIT_Object(sizeof(struct spa_pod_object_body), type, id); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_push_sequence(spa_pod_builder*, spa_pod_frame*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:431:80: warning: ISO C++ forbids compound-literals [-Wpedantic] 431 | ((struct spa_pod_sequence){ { (size), SPA_TYPE_Sequence}, {(unit), 0 } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:437:13: note: in expansion of macro 'SPA_POD_INIT_Sequence' 437 | SPA_POD_INIT_Sequence(sizeof(struct spa_pod_sequence_body), unit); | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/raw-utils.h: In function 'int spa_format_video_raw_parse(const spa_pod*, spa_video_info_raw*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/raw-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/raw-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/dsp-utils.h: In function 'int spa_format_video_dsp_parse(const spa_pod*, spa_video_info_dsp*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/dsp-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/dsp-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/h264-utils.h: In function 'int spa_format_video_h264_parse(const spa_pod*, spa_video_info_h264*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/h264-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/h264-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/mjpg-utils.h: In function 'int spa_format_video_mjpg_parse(const spa_pod*, spa_video_info_mjpg*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/mjpg-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/mjpg-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ At global scope: cc1plus: note: unrecognized command-line option '-Wno-c99-extensions' may have been intended to silence earlier diagnostics cc1plus: note: unrecognized command-line option '-Wno-gnu-statement-expression-from-macro-expansion' may have been intended to silence earlier diagnostics [78/113] Building CXX object tests/CMakeFiles/recordme.dir/recordme_autogen/EWIEGA46WW/qrc_recordme.cpp.o [79/113] Building CXX object src/monitors/CMakeFiles/KPipeWireMonitorDeclarative.dir/.qt/rcc/qrc_qmake_org_kde_pipewire_monitor.cpp.o [80/113] Building CXX object src/CMakeFiles/KPipeWireRecord.dir/pipewireproduce.cpp.o In file included from /usr/include/spa-0.2/spa/support/plugin.h:13, from /usr/include/pipewire-0.3/pipewire/pipewire.h:12, from /opt/kde/src/kpipewire/src/pipewireproduce_p.h:13, from /opt/kde/src/kpipewire/src/pipewireproduce.cpp:7: /usr/include/spa-0.2/spa/utils/dict.h: In function 'const spa_dict_item* spa_dict_lookup_item(const spa_dict*, const char*)': /usr/include/spa-0.2/spa/utils/dict.h:31:80: warning: ISO C++ forbids compound-literals [-Wpedantic] 31 | #define SPA_DICT_ITEM_INIT(key,value) ((struct spa_dict_item) { (key), (value) }) | ^ /usr/include/spa-0.2/spa/utils/dict.h:70:42: note: in expansion of macro 'SPA_DICT_ITEM_INIT' 70 | struct spa_dict_item k = SPA_DICT_ITEM_INIT(key, NULL); | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/spa-0.2/spa/support/plugin.h:12: /usr/include/pipewire-0.3/pipewire/array.h: In function 'int pw_array_ensure_size(pw_array*, size_t)': /usr/include/spa-0.2/spa/utils/defs.h:271:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 271 | ({ \ | ^ /usr/include/pipewire-0.3/pipewire/array.h:115:25: note: in expansion of macro 'SPA_ROUND_UP' 115 | alloc = SPA_ROUND_UP(need, arr->extend); | ^~~~~~~~~~~~ In file included from /usr/include/spa-0.2/spa/utils/hook.h:13, from /usr/include/pipewire-0.3/pipewire/proxy.h:12, from /usr/include/pipewire-0.3/pipewire/client.h:15, from /usr/include/pipewire-0.3/pipewire/pipewire.h:15: /usr/include/spa-0.2/spa/utils/list.h: In function 'void spa_list_init(spa_list*)': /usr/include/spa-0.2/spa/utils/list.h:27:64: warning: ISO C++ forbids compound-literals [-Wpedantic] 27 | #define SPA_LIST_INIT(list) ((struct spa_list){ (list), (list) }) | ^ /usr/include/spa-0.2/spa/utils/list.h:31:17: note: in expansion of macro 'SPA_LIST_INIT' 31 | *list = SPA_LIST_INIT(list); | ^~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/hook.h: In function 'void spa_hook_list_append(spa_hook_list*, spa_hook*, const void*, void*)': /usr/include/spa-0.2/spa/utils/hook.h:125:86: warning: ISO C++ forbids compound-literals [-Wpedantic] 125 | #define SPA_CALLBACKS_INIT(_funcs,_data) ((struct spa_callbacks){ (_funcs), (_data), }) | ^ /usr/include/spa-0.2/spa/utils/hook.h:367:20: note: in expansion of macro 'SPA_CALLBACKS_INIT' 367 | hook->cb = SPA_CALLBACKS_INIT(funcs, data); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/hook.h: In function 'void spa_hook_list_prepend(spa_hook_list*, spa_hook*, const void*, void*)': /usr/include/spa-0.2/spa/utils/hook.h:125:86: warning: ISO C++ forbids compound-literals [-Wpedantic] 125 | #define SPA_CALLBACKS_INIT(_funcs,_data) ((struct spa_callbacks){ (_funcs), (_data), }) | ^ /usr/include/spa-0.2/spa/utils/hook.h:377:20: note: in expansion of macro 'SPA_CALLBACKS_INIT' 377 | hook->cb = SPA_CALLBACKS_INIT(funcs, data); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/string.h: In function 'int spa_strbuf_append(spa_strbuf*, const char*, ...)': /usr/include/spa-0.2/spa/utils/defs.h:147:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 147 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/string.h:384:29: note: in expansion of macro 'SPA_MIN' 384 | buf->pos += SPA_MIN(remain, (size_t)written); | ^~~~~~~ In file included from /usr/include/pipewire-0.3/pipewire/context.h:48, from /usr/include/pipewire-0.3/pipewire/protocol.h:26, from /usr/include/pipewire-0.3/pipewire/proxy.h:90: /usr/include/pipewire-0.3/pipewire/core.h: In function 'int pw_core_errorv(pw_core*, uint32_t, int, int, const char*, __va_list_tag*)': /usr/include/pipewire-0.3/pipewire/core.h:338:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 338 | ({ \ | ^ /usr/include/pipewire-0.3/pipewire/core.h:350:41: note: in expansion of macro 'pw_core_method' 350 | #define pw_core_error(c,...) pw_core_method(c,error,0,__VA_ARGS__) | ^~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:361:16: note: in expansion of macro 'pw_core_error' 361 | return pw_core_error(core, id, seq, res, buffer); | ^~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:340:9: note: in expansion of macro 'spa_interface_call_res' 340 | spa_interface_call_res((struct spa_interface*)o, \ | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:350:41: note: in expansion of macro 'pw_core_method' 350 | #define pw_core_error(c,...) pw_core_method(c,error,0,__VA_ARGS__) | ^~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:361:16: note: in expansion of macro 'pw_core_error' 361 | return pw_core_error(core, id, seq, res, buffer); | ^~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h: In function 'pw_registry* pw_core_get_registry(pw_core*, uint32_t, size_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:381:9: note: in expansion of macro 'spa_interface_call_res' 381 | spa_interface_call_res((struct spa_interface*)core, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h: In function 'void* pw_core_create_object(pw_core*, const char*, const char*, uint32_t, const spa_dict*, size_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:396:9: note: in expansion of macro 'spa_interface_call_res' 396 | spa_interface_call_res((struct spa_interface*)core, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h: In function 'void* pw_registry_bind(pw_registry*, uint32_t, const char*, uint32_t, size_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:537:9: note: in expansion of macro 'spa_interface_call_res' 537 | spa_interface_call_res((struct spa_interface*)registry, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/log.h: In function 'void spa_log_topic_init(spa_log*, spa_log_topic*)': /usr/include/spa-0.2/spa/utils/hook.h:157:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 157 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:230:9: note: in expansion of macro 'spa_callbacks_call' 230 | spa_callbacks_call(&(iface)->cb,method_type,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/log.h:221:9: note: in expansion of macro 'spa_interface_call' 221 | spa_interface_call(&log->iface, struct spa_log_methods, topic_init, 1, topic); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'spa_thread* spa_thread_utils_create(spa_thread_utils*, const spa_dict*, void* (*)(void*), void*)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:65:9: note: in expansion of macro 'spa_interface_call_res' 65 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_join(spa_thread_utils*, spa_thread*, void**)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:77:9: note: in expansion of macro 'spa_interface_call_res' 77 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_get_rt_range(spa_thread_utils*, const spa_dict*, int*, int*)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:89:9: note: in expansion of macro 'spa_interface_call_res' 89 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_acquire_rt(spa_thread_utils*, spa_thread*, int)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:101:9: note: in expansion of macro 'spa_interface_call_res' 101 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_drop_rt(spa_thread_utils*, spa_thread*)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:113:9: note: in expansion of macro 'spa_interface_call_res' 113 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/iter.h: In function 'uint32_t spa_pod_copy_array(const spa_pod*, uint32_t, void*, uint32_t)': /usr/include/spa-0.2/spa/utils/defs.h:147:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 147 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/iter.h:337:20: note: in expansion of macro 'SPA_MIN' 337 | n_values = SPA_MIN(n_values, max_values); | ^~~~~~~ /usr/include/spa-0.2/spa/pod/iter.h: In function 'spa_pod* spa_pod_get_values(const spa_pod*, uint32_t*, uint32_t*)': /usr/include/spa-0.2/spa/utils/defs.h:147:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 147 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/iter.h:353:35: note: in expansion of macro 'SPA_MIN' 353 | *n_vals = SPA_MIN(1u, SPA_POD_CHOICE_N_VALUES(pod)); | ^~~~~~~ In file included from /usr/include/spa-0.2/spa/param/format-utils.h:18, from /opt/kde/src/kpipewire/src/pipewireproduce_p.h:14: /usr/include/spa-0.2/spa/pod/parser.h: In function 'void spa_pod_parser_init(spa_pod_parser*, const void*, uint32_t)': /usr/include/spa-0.2/spa/pod/parser.h:36:94: warning: ISO C++ forbids compound-literals [-Wpedantic] 36 | #define SPA_POD_PARSER_INIT(buffer,size) ((struct spa_pod_parser){ (buffer), (size), 0, {0} }) | ^ /usr/include/spa-0.2/spa/pod/parser.h:41:19: note: in expansion of macro 'SPA_POD_PARSER_INIT' 41 | *parser = SPA_POD_PARSER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:36:94: warning: missing initializer for member 'spa_pod_parser_state::flags' [-Wmissing-field-initializers] 36 | #define SPA_POD_PARSER_INIT(buffer,size) ((struct spa_pod_parser){ (buffer), (size), 0, {0} }) | ^ /usr/include/spa-0.2/spa/pod/parser.h:41:19: note: in expansion of macro 'SPA_POD_PARSER_INIT' 41 | *parser = SPA_POD_PARSER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:36:94: warning: missing initializer for member 'spa_pod_parser_state::frame' [-Wmissing-field-initializers] 36 | #define SPA_POD_PARSER_INIT(buffer,size) ((struct spa_pod_parser){ (buffer), (size), 0, {0} }) | ^ /usr/include/spa-0.2/spa/pod/parser.h:41:19: note: in expansion of macro 'SPA_POD_PARSER_INIT' 41 | *parser = SPA_POD_PARSER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/format-utils.h: In function 'int spa_format_parse(const spa_pod*, uint32_t*, uint32_t*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/format-utils.h:24:16: note: in expansion of macro 'spa_pod_parse_object' 24 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/format-utils.h:24:16: note: in expansion of macro 'spa_pod_parse_object' 24 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'void spa_pod_builder_set_callbacks(spa_pod_builder*, const spa_pod_builder_callbacks*, void*)': /usr/include/spa-0.2/spa/utils/hook.h:125:86: warning: ISO C++ forbids compound-literals [-Wpedantic] 125 | #define SPA_CALLBACKS_INIT(_funcs,_data) ((struct spa_callbacks){ (_funcs), (_data), }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:64:30: note: in expansion of macro 'SPA_CALLBACKS_INIT' 64 | builder->callbacks = SPA_CALLBACKS_INIT(callbacks, data); | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/spa-0.2/spa/param/video/raw-utils.h:18, from /usr/include/spa-0.2/spa/param/video/format-utils.h:14, from /opt/kde/src/kpipewire/src/pipewireproduce_p.h:16: /usr/include/spa-0.2/spa/pod/builder.h: In function 'void spa_pod_builder_init(spa_pod_builder*, void*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: ISO C++ forbids compound-literals [-Wpedantic] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: missing initializer for member 'spa_pod_builder_state::flags' [-Wmissing-field-initializers] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: missing initializer for member 'spa_pod_builder_state::frame' [-Wmissing-field-initializers] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: missing initializer for member 'spa_callbacks::data' [-Wmissing-field-initializers] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_raw(spa_pod_builder*, const void*, uint32_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/builder.h:127:25: note: in expansion of macro 'spa_callbacks_call_res' 127 | spa_callbacks_call_res(&builder->callbacks, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_primitive(spa_pod_builder*, const spa_pod*)': /usr/include/spa-0.2/spa/utils/defs.h:83:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 83 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/builder.h:188:17: note: in expansion of macro 'SPA_FLAG_CLEAR' 188 | SPA_FLAG_CLEAR(builder->state.flags, SPA_POD_BUILDER_FLAG_FIRST); | ^~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_none(spa_pod_builder*)': /usr/include/spa-0.2/spa/pod/builder.h:197:68: warning: ISO C++ forbids compound-literals [-Wpedantic] 197 | #define SPA_POD_INIT(size,type) ((struct spa_pod) { (size), (type) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:199:29: note: in expansion of macro 'SPA_POD_INIT' 199 | #define SPA_POD_INIT_None() SPA_POD_INIT(0, SPA_TYPE_None) | ^~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:203:34: note: in expansion of macro 'SPA_POD_INIT_None' 203 | const struct spa_pod p = SPA_POD_INIT_None(); | ^~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_child(spa_pod_builder*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:197:68: warning: ISO C++ forbids compound-literals [-Wpedantic] 197 | #define SPA_POD_INIT(size,type) ((struct spa_pod) { (size), (type) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:209:34: note: in expansion of macro 'SPA_POD_INIT' 209 | const struct spa_pod p = SPA_POD_INIT(size,type); | ^~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/defs.h:83:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 83 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/builder.h:210:9: note: in expansion of macro 'SPA_FLAG_CLEAR' 210 | SPA_FLAG_CLEAR(builder->state.flags, SPA_POD_BUILDER_FLAG_FIRST); | ^~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_bool(spa_pod_builder*, bool)': /usr/include/spa-0.2/spa/pod/builder.h:214:110: warning: ISO C++ forbids compound-literals [-Wpedantic] 214 | #define SPA_POD_INIT_Bool(val) ((struct spa_pod_bool){ { sizeof(uint32_t), SPA_TYPE_Bool }, (val) ? 1 : 0, 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:218:39: note: in expansion of macro 'SPA_POD_INIT_Bool' 218 | const struct spa_pod_bool p = SPA_POD_INIT_Bool(val); | ^~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_id(spa_pod_builder*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:222:96: warning: ISO C++ forbids compound-literals [-Wpedantic] 222 | #define SPA_POD_INIT_Id(val) ((struct spa_pod_id){ { sizeof(uint32_t), SPA_TYPE_Id }, (val), 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:226:37: note: in expansion of macro 'SPA_POD_INIT_Id' 226 | const struct spa_pod_id p = SPA_POD_INIT_Id(val); | ^~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_int(spa_pod_builder*, int32_t)': /usr/include/spa-0.2/spa/pod/builder.h:230:98: warning: ISO C++ forbids compound-literals [-Wpedantic] 230 | #define SPA_POD_INIT_Int(val) ((struct spa_pod_int){ { sizeof(int32_t), SPA_TYPE_Int }, (val), 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:234:38: note: in expansion of macro 'SPA_POD_INIT_Int' 234 | const struct spa_pod_int p = SPA_POD_INIT_Int(val); | ^~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_long(spa_pod_builder*, int64_t)': /usr/include/spa-0.2/spa/pod/builder.h:238:98: warning: ISO C++ forbids compound-literals [-Wpedantic] 238 | #define SPA_POD_INIT_Long(val) ((struct spa_pod_long){ { sizeof(int64_t), SPA_TYPE_Long }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:242:39: note: in expansion of macro 'SPA_POD_INIT_Long' 242 | const struct spa_pod_long p = SPA_POD_INIT_Long(val); | ^~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_float(spa_pod_builder*, float)': /usr/include/spa-0.2/spa/pod/builder.h:246:102: warning: ISO C++ forbids compound-literals [-Wpedantic] 246 | #define SPA_POD_INIT_Float(val) ((struct spa_pod_float){ { sizeof(float), SPA_TYPE_Float }, (val), 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:250:40: note: in expansion of macro 'SPA_POD_INIT_Float' 250 | const struct spa_pod_float p = SPA_POD_INIT_Float(val); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_double(spa_pod_builder*, double)': /usr/include/spa-0.2/spa/pod/builder.h:254:103: warning: ISO C++ forbids compound-literals [-Wpedantic] 254 | #define SPA_POD_INIT_Double(val) ((struct spa_pod_double){ { sizeof(double), SPA_TYPE_Double }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:258:41: note: in expansion of macro 'SPA_POD_INIT_Double' 258 | const struct spa_pod_double p = SPA_POD_INIT_Double(val); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_string_len(spa_pod_builder*, const char*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:262:87: warning: ISO C++ forbids compound-literals [-Wpedantic] 262 | #define SPA_POD_INIT_String(len) ((struct spa_pod_string){ { (len), SPA_TYPE_String } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:279:41: note: in expansion of macro 'SPA_POD_INIT_String' 279 | const struct spa_pod_string p = SPA_POD_INIT_String(len+1); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_bytes(spa_pod_builder*, const void*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:292:84: warning: ISO C++ forbids compound-literals [-Wpedantic] 292 | #define SPA_POD_INIT_Bytes(len) ((struct spa_pod_bytes){ { (len), SPA_TYPE_Bytes } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:297:40: note: in expansion of macro 'SPA_POD_INIT_Bytes' 297 | const struct spa_pod_bytes p = SPA_POD_INIT_Bytes(len); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_pointer(spa_pod_builder*, uint32_t, const void*)': /usr/include/spa-0.2/spa/pod/builder.h:312:151: warning: ISO C++ forbids compound-literals [-Wpedantic] 312 | #define SPA_POD_INIT_Pointer(type,value) ((struct spa_pod_pointer){ { sizeof(struct spa_pod_pointer_body), SPA_TYPE_Pointer }, { (type), 0, (value) } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:317:42: note: in expansion of macro 'SPA_POD_INIT_Pointer' 317 | const struct spa_pod_pointer p = SPA_POD_INIT_Pointer(type, val); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_fd(spa_pod_builder*, int64_t)': /usr/include/spa-0.2/spa/pod/builder.h:321:90: warning: ISO C++ forbids compound-literals [-Wpedantic] 321 | #define SPA_POD_INIT_Fd(fd) ((struct spa_pod_fd){ { sizeof(int64_t), SPA_TYPE_Fd }, (fd) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:325:37: note: in expansion of macro 'SPA_POD_INIT_Fd' 325 | const struct spa_pod_fd p = SPA_POD_INIT_Fd(fd); | ^~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_rectangle(spa_pod_builder*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/utils/defs.h:100:80: warning: ISO C++ forbids compound-literals [-Wpedantic] 100 | #define SPA_RECTANGLE(width,height) ((struct spa_rectangle){ (width), (height) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:329:121: note: in definition of macro 'SPA_POD_INIT_Rectangle' 329 | #define SPA_POD_INIT_Rectangle(val) ((struct spa_pod_rectangle){ { sizeof(struct spa_rectangle), SPA_TYPE_Rectangle }, (val) }) | ^~~ /usr/include/spa-0.2/spa/pod/builder.h:334:67: note: in expansion of macro 'SPA_RECTANGLE' 334 | const struct spa_pod_rectangle p = SPA_POD_INIT_Rectangle(SPA_RECTANGLE(width, height)); | ^~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:329:126: warning: ISO C++ forbids compound-literals [-Wpedantic] 329 | #define SPA_POD_INIT_Rectangle(val) ((struct spa_pod_rectangle){ { sizeof(struct spa_rectangle), SPA_TYPE_Rectangle }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:334:44: note: in expansion of macro 'SPA_POD_INIT_Rectangle' 334 | const struct spa_pod_rectangle p = SPA_POD_INIT_Rectangle(SPA_RECTANGLE(width, height)); | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_fraction(spa_pod_builder*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/utils/defs.h:118:72: warning: ISO C++ forbids compound-literals [-Wpedantic] 118 | #define SPA_FRACTION(num,denom) ((struct spa_fraction){ (num), (denom) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:338:117: note: in definition of macro 'SPA_POD_INIT_Fraction' 338 | #define SPA_POD_INIT_Fraction(val) ((struct spa_pod_fraction){ { sizeof(struct spa_fraction), SPA_TYPE_Fraction }, (val) }) | ^~~ /usr/include/spa-0.2/spa/pod/builder.h:343:65: note: in expansion of macro 'SPA_FRACTION' 343 | const struct spa_pod_fraction p = SPA_POD_INIT_Fraction(SPA_FRACTION(num, denom)); | ^~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:338:122: warning: ISO C++ forbids compound-literals [-Wpedantic] 338 | #define SPA_POD_INIT_Fraction(val) ((struct spa_pod_fraction){ { sizeof(struct spa_fraction), SPA_TYPE_Fraction }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:343:43: note: in expansion of macro 'SPA_POD_INIT_Fraction' 343 | const struct spa_pod_fraction p = SPA_POD_INIT_Fraction(SPA_FRACTION(num, denom)); | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_push_struct(spa_pod_builder*, spa_pod_frame*)': /usr/include/spa-0.2/spa/pod/builder.h:394:89: warning: ISO C++ forbids compound-literals [-Wpedantic] 394 | #define SPA_POD_INIT_Struct(size) ((struct spa_pod_struct){ { (size), SPA_TYPE_Struct } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:399:41: note: in expansion of macro 'SPA_POD_INIT_Struct' 399 | const struct spa_pod_struct p = SPA_POD_INIT_Struct(0); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_push_object(spa_pod_builder*, spa_pod_frame*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:406:136: warning: ISO C++ forbids compound-literals [-Wpedantic] 406 | #define SPA_POD_INIT_Object(size,type,id,...) ((struct spa_pod_object){ { (size), SPA_TYPE_Object }, { (type), (id) }, ##__VA_ARGS__ }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:413:13: note: in expansion of macro 'SPA_POD_INIT_Object' 413 | SPA_POD_INIT_Object(sizeof(struct spa_pod_object_body), type, id); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_push_sequence(spa_pod_builder*, spa_pod_frame*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:431:80: warning: ISO C++ forbids compound-literals [-Wpedantic] 431 | ((struct spa_pod_sequence){ { (size), SPA_TYPE_Sequence}, {(unit), 0 } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:437:13: note: in expansion of macro 'SPA_POD_INIT_Sequence' 437 | SPA_POD_INIT_Sequence(sizeof(struct spa_pod_sequence_body), unit); | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/raw-utils.h: In function 'int spa_format_video_raw_parse(const spa_pod*, spa_video_info_raw*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/raw-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/raw-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/dsp-utils.h: In function 'int spa_format_video_dsp_parse(const spa_pod*, spa_video_info_dsp*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/dsp-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/dsp-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/h264-utils.h: In function 'int spa_format_video_h264_parse(const spa_pod*, spa_video_info_h264*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/h264-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/h264-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/mjpg-utils.h: In function 'int spa_format_video_mjpg_parse(const spa_pod*, spa_video_info_mjpg*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/mjpg-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/mjpg-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ At global scope: cc1plus: note: unrecognized command-line option '-Wno-c99-extensions' may have been intended to silence earlier diagnostics cc1plus: note: unrecognized command-line option '-Wno-gnu-statement-expression-from-macro-expansion' may have been intended to silence earlier diagnostics [81/113] Building CXX object src/CMakeFiles/KPipeWireRecord.dir/h264vaapiencoder.cpp.o In file included from /usr/include/spa-0.2/spa/support/plugin.h:13, from /usr/include/pipewire-0.3/pipewire/pipewire.h:12, from /opt/kde/src/kpipewire/src/pipewiresourcestream.h:20, from /opt/kde/src/kpipewire/src/dmabufhandler.h:11, from /opt/kde/src/kpipewire/src/encoder_p.h:15, from /opt/kde/src/kpipewire/src/h264vaapiencoder_p.h:9, from /opt/kde/src/kpipewire/src/h264vaapiencoder.cpp:9: /usr/include/spa-0.2/spa/utils/dict.h: In function 'const spa_dict_item* spa_dict_lookup_item(const spa_dict*, const char*)': /usr/include/spa-0.2/spa/utils/dict.h:31:80: warning: ISO C++ forbids compound-literals [-Wpedantic] 31 | #define SPA_DICT_ITEM_INIT(key,value) ((struct spa_dict_item) { (key), (value) }) | ^ /usr/include/spa-0.2/spa/utils/dict.h:70:42: note: in expansion of macro 'SPA_DICT_ITEM_INIT' 70 | struct spa_dict_item k = SPA_DICT_ITEM_INIT(key, NULL); | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/spa-0.2/spa/support/plugin.h:12: /usr/include/pipewire-0.3/pipewire/array.h: In function 'int pw_array_ensure_size(pw_array*, size_t)': /usr/include/spa-0.2/spa/utils/defs.h:271:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 271 | ({ \ | ^ /usr/include/pipewire-0.3/pipewire/array.h:115:25: note: in expansion of macro 'SPA_ROUND_UP' 115 | alloc = SPA_ROUND_UP(need, arr->extend); | ^~~~~~~~~~~~ In file included from /usr/include/spa-0.2/spa/utils/hook.h:13, from /usr/include/pipewire-0.3/pipewire/proxy.h:12, from /usr/include/pipewire-0.3/pipewire/client.h:15, from /usr/include/pipewire-0.3/pipewire/pipewire.h:15: /usr/include/spa-0.2/spa/utils/list.h: In function 'void spa_list_init(spa_list*)': /usr/include/spa-0.2/spa/utils/list.h:27:64: warning: ISO C++ forbids compound-literals [-Wpedantic] 27 | #define SPA_LIST_INIT(list) ((struct spa_list){ (list), (list) }) | ^ /usr/include/spa-0.2/spa/utils/list.h:31:17: note: in expansion of macro 'SPA_LIST_INIT' 31 | *list = SPA_LIST_INIT(list); | ^~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/hook.h: In function 'void spa_hook_list_append(spa_hook_list*, spa_hook*, const void*, void*)': /usr/include/spa-0.2/spa/utils/hook.h:125:86: warning: ISO C++ forbids compound-literals [-Wpedantic] 125 | #define SPA_CALLBACKS_INIT(_funcs,_data) ((struct spa_callbacks){ (_funcs), (_data), }) | ^ /usr/include/spa-0.2/spa/utils/hook.h:367:20: note: in expansion of macro 'SPA_CALLBACKS_INIT' 367 | hook->cb = SPA_CALLBACKS_INIT(funcs, data); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/hook.h: In function 'void spa_hook_list_prepend(spa_hook_list*, spa_hook*, const void*, void*)': /usr/include/spa-0.2/spa/utils/hook.h:125:86: warning: ISO C++ forbids compound-literals [-Wpedantic] 125 | #define SPA_CALLBACKS_INIT(_funcs,_data) ((struct spa_callbacks){ (_funcs), (_data), }) | ^ /usr/include/spa-0.2/spa/utils/hook.h:377:20: note: in expansion of macro 'SPA_CALLBACKS_INIT' 377 | hook->cb = SPA_CALLBACKS_INIT(funcs, data); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/string.h: In function 'int spa_strbuf_append(spa_strbuf*, const char*, ...)': /usr/include/spa-0.2/spa/utils/defs.h:147:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 147 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/string.h:384:29: note: in expansion of macro 'SPA_MIN' 384 | buf->pos += SPA_MIN(remain, (size_t)written); | ^~~~~~~ In file included from /usr/include/pipewire-0.3/pipewire/context.h:48, from /usr/include/pipewire-0.3/pipewire/protocol.h:26, from /usr/include/pipewire-0.3/pipewire/proxy.h:90: /usr/include/pipewire-0.3/pipewire/core.h: In function 'int pw_core_errorv(pw_core*, uint32_t, int, int, const char*, __va_list_tag*)': /usr/include/pipewire-0.3/pipewire/core.h:338:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 338 | ({ \ | ^ /usr/include/pipewire-0.3/pipewire/core.h:350:41: note: in expansion of macro 'pw_core_method' 350 | #define pw_core_error(c,...) pw_core_method(c,error,0,__VA_ARGS__) | ^~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:361:16: note: in expansion of macro 'pw_core_error' 361 | return pw_core_error(core, id, seq, res, buffer); | ^~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:340:9: note: in expansion of macro 'spa_interface_call_res' 340 | spa_interface_call_res((struct spa_interface*)o, \ | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:350:41: note: in expansion of macro 'pw_core_method' 350 | #define pw_core_error(c,...) pw_core_method(c,error,0,__VA_ARGS__) | ^~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:361:16: note: in expansion of macro 'pw_core_error' 361 | return pw_core_error(core, id, seq, res, buffer); | ^~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h: In function 'pw_registry* pw_core_get_registry(pw_core*, uint32_t, size_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:381:9: note: in expansion of macro 'spa_interface_call_res' 381 | spa_interface_call_res((struct spa_interface*)core, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h: In function 'void* pw_core_create_object(pw_core*, const char*, const char*, uint32_t, const spa_dict*, size_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:396:9: note: in expansion of macro 'spa_interface_call_res' 396 | spa_interface_call_res((struct spa_interface*)core, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h: In function 'void* pw_registry_bind(pw_registry*, uint32_t, const char*, uint32_t, size_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:537:9: note: in expansion of macro 'spa_interface_call_res' 537 | spa_interface_call_res((struct spa_interface*)registry, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/log.h: In function 'void spa_log_topic_init(spa_log*, spa_log_topic*)': /usr/include/spa-0.2/spa/utils/hook.h:157:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 157 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:230:9: note: in expansion of macro 'spa_callbacks_call' 230 | spa_callbacks_call(&(iface)->cb,method_type,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/log.h:221:9: note: in expansion of macro 'spa_interface_call' 221 | spa_interface_call(&log->iface, struct spa_log_methods, topic_init, 1, topic); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'spa_thread* spa_thread_utils_create(spa_thread_utils*, const spa_dict*, void* (*)(void*), void*)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:65:9: note: in expansion of macro 'spa_interface_call_res' 65 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_join(spa_thread_utils*, spa_thread*, void**)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:77:9: note: in expansion of macro 'spa_interface_call_res' 77 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_get_rt_range(spa_thread_utils*, const spa_dict*, int*, int*)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:89:9: note: in expansion of macro 'spa_interface_call_res' 89 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_acquire_rt(spa_thread_utils*, spa_thread*, int)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:101:9: note: in expansion of macro 'spa_interface_call_res' 101 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_drop_rt(spa_thread_utils*, spa_thread*)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:113:9: note: in expansion of macro 'spa_interface_call_res' 113 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/iter.h: In function 'uint32_t spa_pod_copy_array(const spa_pod*, uint32_t, void*, uint32_t)': /usr/include/spa-0.2/spa/utils/defs.h:147:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 147 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/iter.h:337:20: note: in expansion of macro 'SPA_MIN' 337 | n_values = SPA_MIN(n_values, max_values); | ^~~~~~~ /usr/include/spa-0.2/spa/pod/iter.h: In function 'spa_pod* spa_pod_get_values(const spa_pod*, uint32_t*, uint32_t*)': /usr/include/spa-0.2/spa/utils/defs.h:147:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 147 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/iter.h:353:35: note: in expansion of macro 'SPA_MIN' 353 | *n_vals = SPA_MIN(1u, SPA_POD_CHOICE_N_VALUES(pod)); | ^~~~~~~ In file included from /usr/include/spa-0.2/spa/param/format-utils.h:18, from /opt/kde/src/kpipewire/src/pipewiresourcestream.h:21: /usr/include/spa-0.2/spa/pod/parser.h: In function 'void spa_pod_parser_init(spa_pod_parser*, const void*, uint32_t)': /usr/include/spa-0.2/spa/pod/parser.h:36:94: warning: ISO C++ forbids compound-literals [-Wpedantic] 36 | #define SPA_POD_PARSER_INIT(buffer,size) ((struct spa_pod_parser){ (buffer), (size), 0, {0} }) | ^ /usr/include/spa-0.2/spa/pod/parser.h:41:19: note: in expansion of macro 'SPA_POD_PARSER_INIT' 41 | *parser = SPA_POD_PARSER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:36:94: warning: missing initializer for member 'spa_pod_parser_state::flags' [-Wmissing-field-initializers] 36 | #define SPA_POD_PARSER_INIT(buffer,size) ((struct spa_pod_parser){ (buffer), (size), 0, {0} }) | ^ /usr/include/spa-0.2/spa/pod/parser.h:41:19: note: in expansion of macro 'SPA_POD_PARSER_INIT' 41 | *parser = SPA_POD_PARSER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:36:94: warning: missing initializer for member 'spa_pod_parser_state::frame' [-Wmissing-field-initializers] 36 | #define SPA_POD_PARSER_INIT(buffer,size) ((struct spa_pod_parser){ (buffer), (size), 0, {0} }) | ^ /usr/include/spa-0.2/spa/pod/parser.h:41:19: note: in expansion of macro 'SPA_POD_PARSER_INIT' 41 | *parser = SPA_POD_PARSER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/format-utils.h: In function 'int spa_format_parse(const spa_pod*, uint32_t*, uint32_t*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/format-utils.h:24:16: note: in expansion of macro 'spa_pod_parse_object' 24 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/format-utils.h:24:16: note: in expansion of macro 'spa_pod_parse_object' 24 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'void spa_pod_builder_set_callbacks(spa_pod_builder*, const spa_pod_builder_callbacks*, void*)': /usr/include/spa-0.2/spa/utils/hook.h:125:86: warning: ISO C++ forbids compound-literals [-Wpedantic] 125 | #define SPA_CALLBACKS_INIT(_funcs,_data) ((struct spa_callbacks){ (_funcs), (_data), }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:64:30: note: in expansion of macro 'SPA_CALLBACKS_INIT' 64 | builder->callbacks = SPA_CALLBACKS_INIT(callbacks, data); | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/spa-0.2/spa/param/video/raw-utils.h:18, from /usr/include/spa-0.2/spa/param/video/format-utils.h:14, from /opt/kde/src/kpipewire/src/pipewiresourcestream.h:23: /usr/include/spa-0.2/spa/pod/builder.h: In function 'void spa_pod_builder_init(spa_pod_builder*, void*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: ISO C++ forbids compound-literals [-Wpedantic] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: missing initializer for member 'spa_pod_builder_state::flags' [-Wmissing-field-initializers] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: missing initializer for member 'spa_pod_builder_state::frame' [-Wmissing-field-initializers] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: missing initializer for member 'spa_callbacks::data' [-Wmissing-field-initializers] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_raw(spa_pod_builder*, const void*, uint32_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/builder.h:127:25: note: in expansion of macro 'spa_callbacks_call_res' 127 | spa_callbacks_call_res(&builder->callbacks, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_primitive(spa_pod_builder*, const spa_pod*)': /usr/include/spa-0.2/spa/utils/defs.h:83:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 83 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/builder.h:188:17: note: in expansion of macro 'SPA_FLAG_CLEAR' 188 | SPA_FLAG_CLEAR(builder->state.flags, SPA_POD_BUILDER_FLAG_FIRST); | ^~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_none(spa_pod_builder*)': /usr/include/spa-0.2/spa/pod/builder.h:197:68: warning: ISO C++ forbids compound-literals [-Wpedantic] 197 | #define SPA_POD_INIT(size,type) ((struct spa_pod) { (size), (type) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:199:29: note: in expansion of macro 'SPA_POD_INIT' 199 | #define SPA_POD_INIT_None() SPA_POD_INIT(0, SPA_TYPE_None) | ^~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:203:34: note: in expansion of macro 'SPA_POD_INIT_None' 203 | const struct spa_pod p = SPA_POD_INIT_None(); | ^~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_child(spa_pod_builder*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:197:68: warning: ISO C++ forbids compound-literals [-Wpedantic] 197 | #define SPA_POD_INIT(size,type) ((struct spa_pod) { (size), (type) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:209:34: note: in expansion of macro 'SPA_POD_INIT' 209 | const struct spa_pod p = SPA_POD_INIT(size,type); | ^~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/defs.h:83:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 83 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/builder.h:210:9: note: in expansion of macro 'SPA_FLAG_CLEAR' 210 | SPA_FLAG_CLEAR(builder->state.flags, SPA_POD_BUILDER_FLAG_FIRST); | ^~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_bool(spa_pod_builder*, bool)': /usr/include/spa-0.2/spa/pod/builder.h:214:110: warning: ISO C++ forbids compound-literals [-Wpedantic] 214 | #define SPA_POD_INIT_Bool(val) ((struct spa_pod_bool){ { sizeof(uint32_t), SPA_TYPE_Bool }, (val) ? 1 : 0, 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:218:39: note: in expansion of macro 'SPA_POD_INIT_Bool' 218 | const struct spa_pod_bool p = SPA_POD_INIT_Bool(val); | ^~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_id(spa_pod_builder*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:222:96: warning: ISO C++ forbids compound-literals [-Wpedantic] 222 | #define SPA_POD_INIT_Id(val) ((struct spa_pod_id){ { sizeof(uint32_t), SPA_TYPE_Id }, (val), 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:226:37: note: in expansion of macro 'SPA_POD_INIT_Id' 226 | const struct spa_pod_id p = SPA_POD_INIT_Id(val); | ^~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_int(spa_pod_builder*, int32_t)': /usr/include/spa-0.2/spa/pod/builder.h:230:98: warning: ISO C++ forbids compound-literals [-Wpedantic] 230 | #define SPA_POD_INIT_Int(val) ((struct spa_pod_int){ { sizeof(int32_t), SPA_TYPE_Int }, (val), 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:234:38: note: in expansion of macro 'SPA_POD_INIT_Int' 234 | const struct spa_pod_int p = SPA_POD_INIT_Int(val); | ^~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_long(spa_pod_builder*, int64_t)': /usr/include/spa-0.2/spa/pod/builder.h:238:98: warning: ISO C++ forbids compound-literals [-Wpedantic] 238 | #define SPA_POD_INIT_Long(val) ((struct spa_pod_long){ { sizeof(int64_t), SPA_TYPE_Long }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:242:39: note: in expansion of macro 'SPA_POD_INIT_Long' 242 | const struct spa_pod_long p = SPA_POD_INIT_Long(val); | ^~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_float(spa_pod_builder*, float)': /usr/include/spa-0.2/spa/pod/builder.h:246:102: warning: ISO C++ forbids compound-literals [-Wpedantic] 246 | #define SPA_POD_INIT_Float(val) ((struct spa_pod_float){ { sizeof(float), SPA_TYPE_Float }, (val), 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:250:40: note: in expansion of macro 'SPA_POD_INIT_Float' 250 | const struct spa_pod_float p = SPA_POD_INIT_Float(val); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_double(spa_pod_builder*, double)': /usr/include/spa-0.2/spa/pod/builder.h:254:103: warning: ISO C++ forbids compound-literals [-Wpedantic] 254 | #define SPA_POD_INIT_Double(val) ((struct spa_pod_double){ { sizeof(double), SPA_TYPE_Double }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:258:41: note: in expansion of macro 'SPA_POD_INIT_Double' 258 | const struct spa_pod_double p = SPA_POD_INIT_Double(val); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_string_len(spa_pod_builder*, const char*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:262:87: warning: ISO C++ forbids compound-literals [-Wpedantic] 262 | #define SPA_POD_INIT_String(len) ((struct spa_pod_string){ { (len), SPA_TYPE_String } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:279:41: note: in expansion of macro 'SPA_POD_INIT_String' 279 | const struct spa_pod_string p = SPA_POD_INIT_String(len+1); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_bytes(spa_pod_builder*, const void*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:292:84: warning: ISO C++ forbids compound-literals [-Wpedantic] 292 | #define SPA_POD_INIT_Bytes(len) ((struct spa_pod_bytes){ { (len), SPA_TYPE_Bytes } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:297:40: note: in expansion of macro 'SPA_POD_INIT_Bytes' 297 | const struct spa_pod_bytes p = SPA_POD_INIT_Bytes(len); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_pointer(spa_pod_builder*, uint32_t, const void*)': /usr/include/spa-0.2/spa/pod/builder.h:312:151: warning: ISO C++ forbids compound-literals [-Wpedantic] 312 | #define SPA_POD_INIT_Pointer(type,value) ((struct spa_pod_pointer){ { sizeof(struct spa_pod_pointer_body), SPA_TYPE_Pointer }, { (type), 0, (value) } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:317:42: note: in expansion of macro 'SPA_POD_INIT_Pointer' 317 | const struct spa_pod_pointer p = SPA_POD_INIT_Pointer(type, val); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_fd(spa_pod_builder*, int64_t)': /usr/include/spa-0.2/spa/pod/builder.h:321:90: warning: ISO C++ forbids compound-literals [-Wpedantic] 321 | #define SPA_POD_INIT_Fd(fd) ((struct spa_pod_fd){ { sizeof(int64_t), SPA_TYPE_Fd }, (fd) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:325:37: note: in expansion of macro 'SPA_POD_INIT_Fd' 325 | const struct spa_pod_fd p = SPA_POD_INIT_Fd(fd); | ^~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_rectangle(spa_pod_builder*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/utils/defs.h:100:80: warning: ISO C++ forbids compound-literals [-Wpedantic] 100 | #define SPA_RECTANGLE(width,height) ((struct spa_rectangle){ (width), (height) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:329:121: note: in definition of macro 'SPA_POD_INIT_Rectangle' 329 | #define SPA_POD_INIT_Rectangle(val) ((struct spa_pod_rectangle){ { sizeof(struct spa_rectangle), SPA_TYPE_Rectangle }, (val) }) | ^~~ /usr/include/spa-0.2/spa/pod/builder.h:334:67: note: in expansion of macro 'SPA_RECTANGLE' 334 | const struct spa_pod_rectangle p = SPA_POD_INIT_Rectangle(SPA_RECTANGLE(width, height)); | ^~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:329:126: warning: ISO C++ forbids compound-literals [-Wpedantic] 329 | #define SPA_POD_INIT_Rectangle(val) ((struct spa_pod_rectangle){ { sizeof(struct spa_rectangle), SPA_TYPE_Rectangle }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:334:44: note: in expansion of macro 'SPA_POD_INIT_Rectangle' 334 | const struct spa_pod_rectangle p = SPA_POD_INIT_Rectangle(SPA_RECTANGLE(width, height)); | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_fraction(spa_pod_builder*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/utils/defs.h:118:72: warning: ISO C++ forbids compound-literals [-Wpedantic] 118 | #define SPA_FRACTION(num,denom) ((struct spa_fraction){ (num), (denom) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:338:117: note: in definition of macro 'SPA_POD_INIT_Fraction' 338 | #define SPA_POD_INIT_Fraction(val) ((struct spa_pod_fraction){ { sizeof(struct spa_fraction), SPA_TYPE_Fraction }, (val) }) | ^~~ /usr/include/spa-0.2/spa/pod/builder.h:343:65: note: in expansion of macro 'SPA_FRACTION' 343 | const struct spa_pod_fraction p = SPA_POD_INIT_Fraction(SPA_FRACTION(num, denom)); | ^~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:338:122: warning: ISO C++ forbids compound-literals [-Wpedantic] 338 | #define SPA_POD_INIT_Fraction(val) ((struct spa_pod_fraction){ { sizeof(struct spa_fraction), SPA_TYPE_Fraction }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:343:43: note: in expansion of macro 'SPA_POD_INIT_Fraction' 343 | const struct spa_pod_fraction p = SPA_POD_INIT_Fraction(SPA_FRACTION(num, denom)); | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_push_struct(spa_pod_builder*, spa_pod_frame*)': /usr/include/spa-0.2/spa/pod/builder.h:394:89: warning: ISO C++ forbids compound-literals [-Wpedantic] 394 | #define SPA_POD_INIT_Struct(size) ((struct spa_pod_struct){ { (size), SPA_TYPE_Struct } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:399:41: note: in expansion of macro 'SPA_POD_INIT_Struct' 399 | const struct spa_pod_struct p = SPA_POD_INIT_Struct(0); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_push_object(spa_pod_builder*, spa_pod_frame*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:406:136: warning: ISO C++ forbids compound-literals [-Wpedantic] 406 | #define SPA_POD_INIT_Object(size,type,id,...) ((struct spa_pod_object){ { (size), SPA_TYPE_Object }, { (type), (id) }, ##__VA_ARGS__ }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:413:13: note: in expansion of macro 'SPA_POD_INIT_Object' 413 | SPA_POD_INIT_Object(sizeof(struct spa_pod_object_body), type, id); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_push_sequence(spa_pod_builder*, spa_pod_frame*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:431:80: warning: ISO C++ forbids compound-literals [-Wpedantic] 431 | ((struct spa_pod_sequence){ { (size), SPA_TYPE_Sequence}, {(unit), 0 } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:437:13: note: in expansion of macro 'SPA_POD_INIT_Sequence' 437 | SPA_POD_INIT_Sequence(sizeof(struct spa_pod_sequence_body), unit); | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/raw-utils.h: In function 'int spa_format_video_raw_parse(const spa_pod*, spa_video_info_raw*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/raw-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/raw-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/dsp-utils.h: In function 'int spa_format_video_dsp_parse(const spa_pod*, spa_video_info_dsp*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/dsp-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/dsp-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/h264-utils.h: In function 'int spa_format_video_h264_parse(const spa_pod*, spa_video_info_h264*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/h264-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/h264-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/mjpg-utils.h: In function 'int spa_format_video_mjpg_parse(const spa_pod*, spa_video_info_mjpg*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/mjpg-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/mjpg-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ At global scope: cc1plus: note: unrecognized command-line option '-Wno-c99-extensions' may have been intended to silence earlier diagnostics cc1plus: note: unrecognized command-line option '-Wno-gnu-statement-expression-from-macro-expansion' may have been intended to silence earlier diagnostics [82/113] Linking CXX executable bin/webcamtest [83/113] Linking CXX executable bin/xdp-recordme [84/113] Linking CXX executable bin/mediamonitortest [85/113] Linking CXX shared module bin/org/kde/pipewire/libKPipeWireDeclarative.so [86/113] Building CXX object src/CMakeFiles/KPipeWireRecord.dir/libx264encoder.cpp.o In file included from /usr/include/spa-0.2/spa/support/plugin.h:13, from /usr/include/pipewire-0.3/pipewire/pipewire.h:12, from /opt/kde/src/kpipewire/src/pipewiresourcestream.h:20, from /opt/kde/src/kpipewire/src/dmabufhandler.h:11, from /opt/kde/src/kpipewire/src/encoder_p.h:15, from /opt/kde/src/kpipewire/src/libx264encoder_p.h:9, from /opt/kde/src/kpipewire/src/libx264encoder.cpp:9: /usr/include/spa-0.2/spa/utils/dict.h: In function 'const spa_dict_item* spa_dict_lookup_item(const spa_dict*, const char*)': /usr/include/spa-0.2/spa/utils/dict.h:31:80: warning: ISO C++ forbids compound-literals [-Wpedantic] 31 | #define SPA_DICT_ITEM_INIT(key,value) ((struct spa_dict_item) { (key), (value) }) | ^ /usr/include/spa-0.2/spa/utils/dict.h:70:42: note: in expansion of macro 'SPA_DICT_ITEM_INIT' 70 | struct spa_dict_item k = SPA_DICT_ITEM_INIT(key, NULL); | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/spa-0.2/spa/support/plugin.h:12: /usr/include/pipewire-0.3/pipewire/array.h: In function 'int pw_array_ensure_size(pw_array*, size_t)': /usr/include/spa-0.2/spa/utils/defs.h:271:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 271 | ({ \ | ^ /usr/include/pipewire-0.3/pipewire/array.h:115:25: note: in expansion of macro 'SPA_ROUND_UP' 115 | alloc = SPA_ROUND_UP(need, arr->extend); | ^~~~~~~~~~~~ In file included from /usr/include/spa-0.2/spa/utils/hook.h:13, from /usr/include/pipewire-0.3/pipewire/proxy.h:12, from /usr/include/pipewire-0.3/pipewire/client.h:15, from /usr/include/pipewire-0.3/pipewire/pipewire.h:15: /usr/include/spa-0.2/spa/utils/list.h: In function 'void spa_list_init(spa_list*)': /usr/include/spa-0.2/spa/utils/list.h:27:64: warning: ISO C++ forbids compound-literals [-Wpedantic] 27 | #define SPA_LIST_INIT(list) ((struct spa_list){ (list), (list) }) | ^ /usr/include/spa-0.2/spa/utils/list.h:31:17: note: in expansion of macro 'SPA_LIST_INIT' 31 | *list = SPA_LIST_INIT(list); | ^~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/hook.h: In function 'void spa_hook_list_append(spa_hook_list*, spa_hook*, const void*, void*)': /usr/include/spa-0.2/spa/utils/hook.h:125:86: warning: ISO C++ forbids compound-literals [-Wpedantic] 125 | #define SPA_CALLBACKS_INIT(_funcs,_data) ((struct spa_callbacks){ (_funcs), (_data), }) | ^ /usr/include/spa-0.2/spa/utils/hook.h:367:20: note: in expansion of macro 'SPA_CALLBACKS_INIT' 367 | hook->cb = SPA_CALLBACKS_INIT(funcs, data); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/hook.h: In function 'void spa_hook_list_prepend(spa_hook_list*, spa_hook*, const void*, void*)': /usr/include/spa-0.2/spa/utils/hook.h:125:86: warning: ISO C++ forbids compound-literals [-Wpedantic] 125 | #define SPA_CALLBACKS_INIT(_funcs,_data) ((struct spa_callbacks){ (_funcs), (_data), }) | ^ /usr/include/spa-0.2/spa/utils/hook.h:377:20: note: in expansion of macro 'SPA_CALLBACKS_INIT' 377 | hook->cb = SPA_CALLBACKS_INIT(funcs, data); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/string.h: In function 'int spa_strbuf_append(spa_strbuf*, const char*, ...)': /usr/include/spa-0.2/spa/utils/defs.h:147:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 147 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/string.h:384:29: note: in expansion of macro 'SPA_MIN' 384 | buf->pos += SPA_MIN(remain, (size_t)written); | ^~~~~~~ In file included from /usr/include/pipewire-0.3/pipewire/context.h:48, from /usr/include/pipewire-0.3/pipewire/protocol.h:26, from /usr/include/pipewire-0.3/pipewire/proxy.h:90: /usr/include/pipewire-0.3/pipewire/core.h: In function 'int pw_core_errorv(pw_core*, uint32_t, int, int, const char*, __va_list_tag*)': /usr/include/pipewire-0.3/pipewire/core.h:338:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 338 | ({ \ | ^ /usr/include/pipewire-0.3/pipewire/core.h:350:41: note: in expansion of macro 'pw_core_method' 350 | #define pw_core_error(c,...) pw_core_method(c,error,0,__VA_ARGS__) | ^~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:361:16: note: in expansion of macro 'pw_core_error' 361 | return pw_core_error(core, id, seq, res, buffer); | ^~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:340:9: note: in expansion of macro 'spa_interface_call_res' 340 | spa_interface_call_res((struct spa_interface*)o, \ | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:350:41: note: in expansion of macro 'pw_core_method' 350 | #define pw_core_error(c,...) pw_core_method(c,error,0,__VA_ARGS__) | ^~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:361:16: note: in expansion of macro 'pw_core_error' 361 | return pw_core_error(core, id, seq, res, buffer); | ^~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h: In function 'pw_registry* pw_core_get_registry(pw_core*, uint32_t, size_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:381:9: note: in expansion of macro 'spa_interface_call_res' 381 | spa_interface_call_res((struct spa_interface*)core, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h: In function 'void* pw_core_create_object(pw_core*, const char*, const char*, uint32_t, const spa_dict*, size_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:396:9: note: in expansion of macro 'spa_interface_call_res' 396 | spa_interface_call_res((struct spa_interface*)core, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h: In function 'void* pw_registry_bind(pw_registry*, uint32_t, const char*, uint32_t, size_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:537:9: note: in expansion of macro 'spa_interface_call_res' 537 | spa_interface_call_res((struct spa_interface*)registry, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/log.h: In function 'void spa_log_topic_init(spa_log*, spa_log_topic*)': /usr/include/spa-0.2/spa/utils/hook.h:157:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 157 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:230:9: note: in expansion of macro 'spa_callbacks_call' 230 | spa_callbacks_call(&(iface)->cb,method_type,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/log.h:221:9: note: in expansion of macro 'spa_interface_call' 221 | spa_interface_call(&log->iface, struct spa_log_methods, topic_init, 1, topic); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'spa_thread* spa_thread_utils_create(spa_thread_utils*, const spa_dict*, void* (*)(void*), void*)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:65:9: note: in expansion of macro 'spa_interface_call_res' 65 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_join(spa_thread_utils*, spa_thread*, void**)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:77:9: note: in expansion of macro 'spa_interface_call_res' 77 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_get_rt_range(spa_thread_utils*, const spa_dict*, int*, int*)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:89:9: note: in expansion of macro 'spa_interface_call_res' 89 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_acquire_rt(spa_thread_utils*, spa_thread*, int)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:101:9: note: in expansion of macro 'spa_interface_call_res' 101 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_drop_rt(spa_thread_utils*, spa_thread*)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:113:9: note: in expansion of macro 'spa_interface_call_res' 113 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/iter.h: In function 'uint32_t spa_pod_copy_array(const spa_pod*, uint32_t, void*, uint32_t)': /usr/include/spa-0.2/spa/utils/defs.h:147:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 147 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/iter.h:337:20: note: in expansion of macro 'SPA_MIN' 337 | n_values = SPA_MIN(n_values, max_values); | ^~~~~~~ /usr/include/spa-0.2/spa/pod/iter.h: In function 'spa_pod* spa_pod_get_values(const spa_pod*, uint32_t*, uint32_t*)': /usr/include/spa-0.2/spa/utils/defs.h:147:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 147 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/iter.h:353:35: note: in expansion of macro 'SPA_MIN' 353 | *n_vals = SPA_MIN(1u, SPA_POD_CHOICE_N_VALUES(pod)); | ^~~~~~~ In file included from /usr/include/spa-0.2/spa/param/format-utils.h:18, from /opt/kde/src/kpipewire/src/pipewiresourcestream.h:21: /usr/include/spa-0.2/spa/pod/parser.h: In function 'void spa_pod_parser_init(spa_pod_parser*, const void*, uint32_t)': /usr/include/spa-0.2/spa/pod/parser.h:36:94: warning: ISO C++ forbids compound-literals [-Wpedantic] 36 | #define SPA_POD_PARSER_INIT(buffer,size) ((struct spa_pod_parser){ (buffer), (size), 0, {0} }) | ^ /usr/include/spa-0.2/spa/pod/parser.h:41:19: note: in expansion of macro 'SPA_POD_PARSER_INIT' 41 | *parser = SPA_POD_PARSER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:36:94: warning: missing initializer for member 'spa_pod_parser_state::flags' [-Wmissing-field-initializers] 36 | #define SPA_POD_PARSER_INIT(buffer,size) ((struct spa_pod_parser){ (buffer), (size), 0, {0} }) | ^ /usr/include/spa-0.2/spa/pod/parser.h:41:19: note: in expansion of macro 'SPA_POD_PARSER_INIT' 41 | *parser = SPA_POD_PARSER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:36:94: warning: missing initializer for member 'spa_pod_parser_state::frame' [-Wmissing-field-initializers] 36 | #define SPA_POD_PARSER_INIT(buffer,size) ((struct spa_pod_parser){ (buffer), (size), 0, {0} }) | ^ /usr/include/spa-0.2/spa/pod/parser.h:41:19: note: in expansion of macro 'SPA_POD_PARSER_INIT' 41 | *parser = SPA_POD_PARSER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/format-utils.h: In function 'int spa_format_parse(const spa_pod*, uint32_t*, uint32_t*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/format-utils.h:24:16: note: in expansion of macro 'spa_pod_parse_object' 24 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/format-utils.h:24:16: note: in expansion of macro 'spa_pod_parse_object' 24 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'void spa_pod_builder_set_callbacks(spa_pod_builder*, const spa_pod_builder_callbacks*, void*)': /usr/include/spa-0.2/spa/utils/hook.h:125:86: warning: ISO C++ forbids compound-literals [-Wpedantic] 125 | #define SPA_CALLBACKS_INIT(_funcs,_data) ((struct spa_callbacks){ (_funcs), (_data), }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:64:30: note: in expansion of macro 'SPA_CALLBACKS_INIT' 64 | builder->callbacks = SPA_CALLBACKS_INIT(callbacks, data); | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/spa-0.2/spa/param/video/raw-utils.h:18, from /usr/include/spa-0.2/spa/param/video/format-utils.h:14, from /opt/kde/src/kpipewire/src/pipewiresourcestream.h:23: /usr/include/spa-0.2/spa/pod/builder.h: In function 'void spa_pod_builder_init(spa_pod_builder*, void*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: ISO C++ forbids compound-literals [-Wpedantic] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: missing initializer for member 'spa_pod_builder_state::flags' [-Wmissing-field-initializers] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: missing initializer for member 'spa_pod_builder_state::frame' [-Wmissing-field-initializers] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: missing initializer for member 'spa_callbacks::data' [-Wmissing-field-initializers] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_raw(spa_pod_builder*, const void*, uint32_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/builder.h:127:25: note: in expansion of macro 'spa_callbacks_call_res' 127 | spa_callbacks_call_res(&builder->callbacks, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_primitive(spa_pod_builder*, const spa_pod*)': /usr/include/spa-0.2/spa/utils/defs.h:83:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 83 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/builder.h:188:17: note: in expansion of macro 'SPA_FLAG_CLEAR' 188 | SPA_FLAG_CLEAR(builder->state.flags, SPA_POD_BUILDER_FLAG_FIRST); | ^~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_none(spa_pod_builder*)': /usr/include/spa-0.2/spa/pod/builder.h:197:68: warning: ISO C++ forbids compound-literals [-Wpedantic] 197 | #define SPA_POD_INIT(size,type) ((struct spa_pod) { (size), (type) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:199:29: note: in expansion of macro 'SPA_POD_INIT' 199 | #define SPA_POD_INIT_None() SPA_POD_INIT(0, SPA_TYPE_None) | ^~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:203:34: note: in expansion of macro 'SPA_POD_INIT_None' 203 | const struct spa_pod p = SPA_POD_INIT_None(); | ^~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_child(spa_pod_builder*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:197:68: warning: ISO C++ forbids compound-literals [-Wpedantic] 197 | #define SPA_POD_INIT(size,type) ((struct spa_pod) { (size), (type) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:209:34: note: in expansion of macro 'SPA_POD_INIT' 209 | const struct spa_pod p = SPA_POD_INIT(size,type); | ^~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/defs.h:83:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 83 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/builder.h:210:9: note: in expansion of macro 'SPA_FLAG_CLEAR' 210 | SPA_FLAG_CLEAR(builder->state.flags, SPA_POD_BUILDER_FLAG_FIRST); | ^~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_bool(spa_pod_builder*, bool)': /usr/include/spa-0.2/spa/pod/builder.h:214:110: warning: ISO C++ forbids compound-literals [-Wpedantic] 214 | #define SPA_POD_INIT_Bool(val) ((struct spa_pod_bool){ { sizeof(uint32_t), SPA_TYPE_Bool }, (val) ? 1 : 0, 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:218:39: note: in expansion of macro 'SPA_POD_INIT_Bool' 218 | const struct spa_pod_bool p = SPA_POD_INIT_Bool(val); | ^~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_id(spa_pod_builder*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:222:96: warning: ISO C++ forbids compound-literals [-Wpedantic] 222 | #define SPA_POD_INIT_Id(val) ((struct spa_pod_id){ { sizeof(uint32_t), SPA_TYPE_Id }, (val), 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:226:37: note: in expansion of macro 'SPA_POD_INIT_Id' 226 | const struct spa_pod_id p = SPA_POD_INIT_Id(val); | ^~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_int(spa_pod_builder*, int32_t)': /usr/include/spa-0.2/spa/pod/builder.h:230:98: warning: ISO C++ forbids compound-literals [-Wpedantic] 230 | #define SPA_POD_INIT_Int(val) ((struct spa_pod_int){ { sizeof(int32_t), SPA_TYPE_Int }, (val), 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:234:38: note: in expansion of macro 'SPA_POD_INIT_Int' 234 | const struct spa_pod_int p = SPA_POD_INIT_Int(val); | ^~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_long(spa_pod_builder*, int64_t)': /usr/include/spa-0.2/spa/pod/builder.h:238:98: warning: ISO C++ forbids compound-literals [-Wpedantic] 238 | #define SPA_POD_INIT_Long(val) ((struct spa_pod_long){ { sizeof(int64_t), SPA_TYPE_Long }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:242:39: note: in expansion of macro 'SPA_POD_INIT_Long' 242 | const struct spa_pod_long p = SPA_POD_INIT_Long(val); | ^~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_float(spa_pod_builder*, float)': /usr/include/spa-0.2/spa/pod/builder.h:246:102: warning: ISO C++ forbids compound-literals [-Wpedantic] 246 | #define SPA_POD_INIT_Float(val) ((struct spa_pod_float){ { sizeof(float), SPA_TYPE_Float }, (val), 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:250:40: note: in expansion of macro 'SPA_POD_INIT_Float' 250 | const struct spa_pod_float p = SPA_POD_INIT_Float(val); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_double(spa_pod_builder*, double)': /usr/include/spa-0.2/spa/pod/builder.h:254:103: warning: ISO C++ forbids compound-literals [-Wpedantic] 254 | #define SPA_POD_INIT_Double(val) ((struct spa_pod_double){ { sizeof(double), SPA_TYPE_Double }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:258:41: note: in expansion of macro 'SPA_POD_INIT_Double' 258 | const struct spa_pod_double p = SPA_POD_INIT_Double(val); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_string_len(spa_pod_builder*, const char*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:262:87: warning: ISO C++ forbids compound-literals [-Wpedantic] 262 | #define SPA_POD_INIT_String(len) ((struct spa_pod_string){ { (len), SPA_TYPE_String } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:279:41: note: in expansion of macro 'SPA_POD_INIT_String' 279 | const struct spa_pod_string p = SPA_POD_INIT_String(len+1); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_bytes(spa_pod_builder*, const void*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:292:84: warning: ISO C++ forbids compound-literals [-Wpedantic] 292 | #define SPA_POD_INIT_Bytes(len) ((struct spa_pod_bytes){ { (len), SPA_TYPE_Bytes } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:297:40: note: in expansion of macro 'SPA_POD_INIT_Bytes' 297 | const struct spa_pod_bytes p = SPA_POD_INIT_Bytes(len); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_pointer(spa_pod_builder*, uint32_t, const void*)': /usr/include/spa-0.2/spa/pod/builder.h:312:151: warning: ISO C++ forbids compound-literals [-Wpedantic] 312 | #define SPA_POD_INIT_Pointer(type,value) ((struct spa_pod_pointer){ { sizeof(struct spa_pod_pointer_body), SPA_TYPE_Pointer }, { (type), 0, (value) } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:317:42: note: in expansion of macro 'SPA_POD_INIT_Pointer' 317 | const struct spa_pod_pointer p = SPA_POD_INIT_Pointer(type, val); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_fd(spa_pod_builder*, int64_t)': /usr/include/spa-0.2/spa/pod/builder.h:321:90: warning: ISO C++ forbids compound-literals [-Wpedantic] 321 | #define SPA_POD_INIT_Fd(fd) ((struct spa_pod_fd){ { sizeof(int64_t), SPA_TYPE_Fd }, (fd) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:325:37: note: in expansion of macro 'SPA_POD_INIT_Fd' 325 | const struct spa_pod_fd p = SPA_POD_INIT_Fd(fd); | ^~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_rectangle(spa_pod_builder*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/utils/defs.h:100:80: warning: ISO C++ forbids compound-literals [-Wpedantic] 100 | #define SPA_RECTANGLE(width,height) ((struct spa_rectangle){ (width), (height) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:329:121: note: in definition of macro 'SPA_POD_INIT_Rectangle' 329 | #define SPA_POD_INIT_Rectangle(val) ((struct spa_pod_rectangle){ { sizeof(struct spa_rectangle), SPA_TYPE_Rectangle }, (val) }) | ^~~ /usr/include/spa-0.2/spa/pod/builder.h:334:67: note: in expansion of macro 'SPA_RECTANGLE' 334 | const struct spa_pod_rectangle p = SPA_POD_INIT_Rectangle(SPA_RECTANGLE(width, height)); | ^~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:329:126: warning: ISO C++ forbids compound-literals [-Wpedantic] 329 | #define SPA_POD_INIT_Rectangle(val) ((struct spa_pod_rectangle){ { sizeof(struct spa_rectangle), SPA_TYPE_Rectangle }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:334:44: note: in expansion of macro 'SPA_POD_INIT_Rectangle' 334 | const struct spa_pod_rectangle p = SPA_POD_INIT_Rectangle(SPA_RECTANGLE(width, height)); | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_fraction(spa_pod_builder*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/utils/defs.h:118:72: warning: ISO C++ forbids compound-literals [-Wpedantic] 118 | #define SPA_FRACTION(num,denom) ((struct spa_fraction){ (num), (denom) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:338:117: note: in definition of macro 'SPA_POD_INIT_Fraction' 338 | #define SPA_POD_INIT_Fraction(val) ((struct spa_pod_fraction){ { sizeof(struct spa_fraction), SPA_TYPE_Fraction }, (val) }) | ^~~ /usr/include/spa-0.2/spa/pod/builder.h:343:65: note: in expansion of macro 'SPA_FRACTION' 343 | const struct spa_pod_fraction p = SPA_POD_INIT_Fraction(SPA_FRACTION(num, denom)); | ^~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:338:122: warning: ISO C++ forbids compound-literals [-Wpedantic] 338 | #define SPA_POD_INIT_Fraction(val) ((struct spa_pod_fraction){ { sizeof(struct spa_fraction), SPA_TYPE_Fraction }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:343:43: note: in expansion of macro 'SPA_POD_INIT_Fraction' 343 | const struct spa_pod_fraction p = SPA_POD_INIT_Fraction(SPA_FRACTION(num, denom)); | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_push_struct(spa_pod_builder*, spa_pod_frame*)': /usr/include/spa-0.2/spa/pod/builder.h:394:89: warning: ISO C++ forbids compound-literals [-Wpedantic] 394 | #define SPA_POD_INIT_Struct(size) ((struct spa_pod_struct){ { (size), SPA_TYPE_Struct } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:399:41: note: in expansion of macro 'SPA_POD_INIT_Struct' 399 | const struct spa_pod_struct p = SPA_POD_INIT_Struct(0); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_push_object(spa_pod_builder*, spa_pod_frame*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:406:136: warning: ISO C++ forbids compound-literals [-Wpedantic] 406 | #define SPA_POD_INIT_Object(size,type,id,...) ((struct spa_pod_object){ { (size), SPA_TYPE_Object }, { (type), (id) }, ##__VA_ARGS__ }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:413:13: note: in expansion of macro 'SPA_POD_INIT_Object' 413 | SPA_POD_INIT_Object(sizeof(struct spa_pod_object_body), type, id); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_push_sequence(spa_pod_builder*, spa_pod_frame*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:431:80: warning: ISO C++ forbids compound-literals [-Wpedantic] 431 | ((struct spa_pod_sequence){ { (size), SPA_TYPE_Sequence}, {(unit), 0 } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:437:13: note: in expansion of macro 'SPA_POD_INIT_Sequence' 437 | SPA_POD_INIT_Sequence(sizeof(struct spa_pod_sequence_body), unit); | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/raw-utils.h: In function 'int spa_format_video_raw_parse(const spa_pod*, spa_video_info_raw*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/raw-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/raw-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/dsp-utils.h: In function 'int spa_format_video_dsp_parse(const spa_pod*, spa_video_info_dsp*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/dsp-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/dsp-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/h264-utils.h: In function 'int spa_format_video_h264_parse(const spa_pod*, spa_video_info_h264*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/h264-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/h264-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/mjpg-utils.h: In function 'int spa_format_video_mjpg_parse(const spa_pod*, spa_video_info_mjpg*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/mjpg-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/mjpg-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ At global scope: cc1plus: note: unrecognized command-line option '-Wno-c99-extensions' may have been intended to silence earlier diagnostics cc1plus: note: unrecognized command-line option '-Wno-gnu-statement-expression-from-macro-expansion' may have been intended to silence earlier diagnostics [87/113] Building CXX object src/CMakeFiles/KPipeWireRecord.dir/libopenh264encoder.cpp.o In file included from /usr/include/spa-0.2/spa/support/plugin.h:13, from /usr/include/pipewire-0.3/pipewire/pipewire.h:12, from /opt/kde/src/kpipewire/src/pipewiresourcestream.h:20, from /opt/kde/src/kpipewire/src/dmabufhandler.h:11, from /opt/kde/src/kpipewire/src/encoder_p.h:15, from /opt/kde/src/kpipewire/src/libopenh264encoder_p.h:10, from /opt/kde/src/kpipewire/src/libopenh264encoder.cpp:10: /usr/include/spa-0.2/spa/utils/dict.h: In function 'const spa_dict_item* spa_dict_lookup_item(const spa_dict*, const char*)': /usr/include/spa-0.2/spa/utils/dict.h:31:80: warning: ISO C++ forbids compound-literals [-Wpedantic] 31 | #define SPA_DICT_ITEM_INIT(key,value) ((struct spa_dict_item) { (key), (value) }) | ^ /usr/include/spa-0.2/spa/utils/dict.h:70:42: note: in expansion of macro 'SPA_DICT_ITEM_INIT' 70 | struct spa_dict_item k = SPA_DICT_ITEM_INIT(key, NULL); | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/spa-0.2/spa/support/plugin.h:12: /usr/include/pipewire-0.3/pipewire/array.h: In function 'int pw_array_ensure_size(pw_array*, size_t)': /usr/include/spa-0.2/spa/utils/defs.h:271:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 271 | ({ \ | ^ /usr/include/pipewire-0.3/pipewire/array.h:115:25: note: in expansion of macro 'SPA_ROUND_UP' 115 | alloc = SPA_ROUND_UP(need, arr->extend); | ^~~~~~~~~~~~ In file included from /usr/include/spa-0.2/spa/utils/hook.h:13, from /usr/include/pipewire-0.3/pipewire/proxy.h:12, from /usr/include/pipewire-0.3/pipewire/client.h:15, from /usr/include/pipewire-0.3/pipewire/pipewire.h:15: /usr/include/spa-0.2/spa/utils/list.h: In function 'void spa_list_init(spa_list*)': /usr/include/spa-0.2/spa/utils/list.h:27:64: warning: ISO C++ forbids compound-literals [-Wpedantic] 27 | #define SPA_LIST_INIT(list) ((struct spa_list){ (list), (list) }) | ^ /usr/include/spa-0.2/spa/utils/list.h:31:17: note: in expansion of macro 'SPA_LIST_INIT' 31 | *list = SPA_LIST_INIT(list); | ^~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/hook.h: In function 'void spa_hook_list_append(spa_hook_list*, spa_hook*, const void*, void*)': /usr/include/spa-0.2/spa/utils/hook.h:125:86: warning: ISO C++ forbids compound-literals [-Wpedantic] 125 | #define SPA_CALLBACKS_INIT(_funcs,_data) ((struct spa_callbacks){ (_funcs), (_data), }) | ^ /usr/include/spa-0.2/spa/utils/hook.h:367:20: note: in expansion of macro 'SPA_CALLBACKS_INIT' 367 | hook->cb = SPA_CALLBACKS_INIT(funcs, data); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/hook.h: In function 'void spa_hook_list_prepend(spa_hook_list*, spa_hook*, const void*, void*)': /usr/include/spa-0.2/spa/utils/hook.h:125:86: warning: ISO C++ forbids compound-literals [-Wpedantic] 125 | #define SPA_CALLBACKS_INIT(_funcs,_data) ((struct spa_callbacks){ (_funcs), (_data), }) | ^ /usr/include/spa-0.2/spa/utils/hook.h:377:20: note: in expansion of macro 'SPA_CALLBACKS_INIT' 377 | hook->cb = SPA_CALLBACKS_INIT(funcs, data); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/string.h: In function 'int spa_strbuf_append(spa_strbuf*, const char*, ...)': /usr/include/spa-0.2/spa/utils/defs.h:147:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 147 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/string.h:384:29: note: in expansion of macro 'SPA_MIN' 384 | buf->pos += SPA_MIN(remain, (size_t)written); | ^~~~~~~ In file included from /usr/include/pipewire-0.3/pipewire/context.h:48, from /usr/include/pipewire-0.3/pipewire/protocol.h:26, from /usr/include/pipewire-0.3/pipewire/proxy.h:90: /usr/include/pipewire-0.3/pipewire/core.h: In function 'int pw_core_errorv(pw_core*, uint32_t, int, int, const char*, __va_list_tag*)': /usr/include/pipewire-0.3/pipewire/core.h:338:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 338 | ({ \ | ^ /usr/include/pipewire-0.3/pipewire/core.h:350:41: note: in expansion of macro 'pw_core_method' 350 | #define pw_core_error(c,...) pw_core_method(c,error,0,__VA_ARGS__) | ^~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:361:16: note: in expansion of macro 'pw_core_error' 361 | return pw_core_error(core, id, seq, res, buffer); | ^~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:340:9: note: in expansion of macro 'spa_interface_call_res' 340 | spa_interface_call_res((struct spa_interface*)o, \ | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:350:41: note: in expansion of macro 'pw_core_method' 350 | #define pw_core_error(c,...) pw_core_method(c,error,0,__VA_ARGS__) | ^~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:361:16: note: in expansion of macro 'pw_core_error' 361 | return pw_core_error(core, id, seq, res, buffer); | ^~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h: In function 'pw_registry* pw_core_get_registry(pw_core*, uint32_t, size_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:381:9: note: in expansion of macro 'spa_interface_call_res' 381 | spa_interface_call_res((struct spa_interface*)core, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h: In function 'void* pw_core_create_object(pw_core*, const char*, const char*, uint32_t, const spa_dict*, size_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:396:9: note: in expansion of macro 'spa_interface_call_res' 396 | spa_interface_call_res((struct spa_interface*)core, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h: In function 'void* pw_registry_bind(pw_registry*, uint32_t, const char*, uint32_t, size_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:537:9: note: in expansion of macro 'spa_interface_call_res' 537 | spa_interface_call_res((struct spa_interface*)registry, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/log.h: In function 'void spa_log_topic_init(spa_log*, spa_log_topic*)': /usr/include/spa-0.2/spa/utils/hook.h:157:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 157 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:230:9: note: in expansion of macro 'spa_callbacks_call' 230 | spa_callbacks_call(&(iface)->cb,method_type,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/log.h:221:9: note: in expansion of macro 'spa_interface_call' 221 | spa_interface_call(&log->iface, struct spa_log_methods, topic_init, 1, topic); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'spa_thread* spa_thread_utils_create(spa_thread_utils*, const spa_dict*, void* (*)(void*), void*)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:65:9: note: in expansion of macro 'spa_interface_call_res' 65 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_join(spa_thread_utils*, spa_thread*, void**)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:77:9: note: in expansion of macro 'spa_interface_call_res' 77 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_get_rt_range(spa_thread_utils*, const spa_dict*, int*, int*)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:89:9: note: in expansion of macro 'spa_interface_call_res' 89 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_acquire_rt(spa_thread_utils*, spa_thread*, int)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:101:9: note: in expansion of macro 'spa_interface_call_res' 101 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_drop_rt(spa_thread_utils*, spa_thread*)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:113:9: note: in expansion of macro 'spa_interface_call_res' 113 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/iter.h: In function 'uint32_t spa_pod_copy_array(const spa_pod*, uint32_t, void*, uint32_t)': /usr/include/spa-0.2/spa/utils/defs.h:147:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 147 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/iter.h:337:20: note: in expansion of macro 'SPA_MIN' 337 | n_values = SPA_MIN(n_values, max_values); | ^~~~~~~ /usr/include/spa-0.2/spa/pod/iter.h: In function 'spa_pod* spa_pod_get_values(const spa_pod*, uint32_t*, uint32_t*)': /usr/include/spa-0.2/spa/utils/defs.h:147:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 147 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/iter.h:353:35: note: in expansion of macro 'SPA_MIN' 353 | *n_vals = SPA_MIN(1u, SPA_POD_CHOICE_N_VALUES(pod)); | ^~~~~~~ In file included from /usr/include/spa-0.2/spa/param/format-utils.h:18, from /opt/kde/src/kpipewire/src/pipewiresourcestream.h:21: /usr/include/spa-0.2/spa/pod/parser.h: In function 'void spa_pod_parser_init(spa_pod_parser*, const void*, uint32_t)': /usr/include/spa-0.2/spa/pod/parser.h:36:94: warning: ISO C++ forbids compound-literals [-Wpedantic] 36 | #define SPA_POD_PARSER_INIT(buffer,size) ((struct spa_pod_parser){ (buffer), (size), 0, {0} }) | ^ /usr/include/spa-0.2/spa/pod/parser.h:41:19: note: in expansion of macro 'SPA_POD_PARSER_INIT' 41 | *parser = SPA_POD_PARSER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:36:94: warning: missing initializer for member 'spa_pod_parser_state::flags' [-Wmissing-field-initializers] 36 | #define SPA_POD_PARSER_INIT(buffer,size) ((struct spa_pod_parser){ (buffer), (size), 0, {0} }) | ^ /usr/include/spa-0.2/spa/pod/parser.h:41:19: note: in expansion of macro 'SPA_POD_PARSER_INIT' 41 | *parser = SPA_POD_PARSER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:36:94: warning: missing initializer for member 'spa_pod_parser_state::frame' [-Wmissing-field-initializers] 36 | #define SPA_POD_PARSER_INIT(buffer,size) ((struct spa_pod_parser){ (buffer), (size), 0, {0} }) | ^ /usr/include/spa-0.2/spa/pod/parser.h:41:19: note: in expansion of macro 'SPA_POD_PARSER_INIT' 41 | *parser = SPA_POD_PARSER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/format-utils.h: In function 'int spa_format_parse(const spa_pod*, uint32_t*, uint32_t*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/format-utils.h:24:16: note: in expansion of macro 'spa_pod_parse_object' 24 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/format-utils.h:24:16: note: in expansion of macro 'spa_pod_parse_object' 24 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'void spa_pod_builder_set_callbacks(spa_pod_builder*, const spa_pod_builder_callbacks*, void*)': /usr/include/spa-0.2/spa/utils/hook.h:125:86: warning: ISO C++ forbids compound-literals [-Wpedantic] 125 | #define SPA_CALLBACKS_INIT(_funcs,_data) ((struct spa_callbacks){ (_funcs), (_data), }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:64:30: note: in expansion of macro 'SPA_CALLBACKS_INIT' 64 | builder->callbacks = SPA_CALLBACKS_INIT(callbacks, data); | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/spa-0.2/spa/param/video/raw-utils.h:18, from /usr/include/spa-0.2/spa/param/video/format-utils.h:14, from /opt/kde/src/kpipewire/src/pipewiresourcestream.h:23: /usr/include/spa-0.2/spa/pod/builder.h: In function 'void spa_pod_builder_init(spa_pod_builder*, void*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: ISO C++ forbids compound-literals [-Wpedantic] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: missing initializer for member 'spa_pod_builder_state::flags' [-Wmissing-field-initializers] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: missing initializer for member 'spa_pod_builder_state::frame' [-Wmissing-field-initializers] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: missing initializer for member 'spa_callbacks::data' [-Wmissing-field-initializers] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_raw(spa_pod_builder*, const void*, uint32_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/builder.h:127:25: note: in expansion of macro 'spa_callbacks_call_res' 127 | spa_callbacks_call_res(&builder->callbacks, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_primitive(spa_pod_builder*, const spa_pod*)': /usr/include/spa-0.2/spa/utils/defs.h:83:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 83 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/builder.h:188:17: note: in expansion of macro 'SPA_FLAG_CLEAR' 188 | SPA_FLAG_CLEAR(builder->state.flags, SPA_POD_BUILDER_FLAG_FIRST); | ^~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_none(spa_pod_builder*)': /usr/include/spa-0.2/spa/pod/builder.h:197:68: warning: ISO C++ forbids compound-literals [-Wpedantic] 197 | #define SPA_POD_INIT(size,type) ((struct spa_pod) { (size), (type) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:199:29: note: in expansion of macro 'SPA_POD_INIT' 199 | #define SPA_POD_INIT_None() SPA_POD_INIT(0, SPA_TYPE_None) | ^~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:203:34: note: in expansion of macro 'SPA_POD_INIT_None' 203 | const struct spa_pod p = SPA_POD_INIT_None(); | ^~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_child(spa_pod_builder*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:197:68: warning: ISO C++ forbids compound-literals [-Wpedantic] 197 | #define SPA_POD_INIT(size,type) ((struct spa_pod) { (size), (type) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:209:34: note: in expansion of macro 'SPA_POD_INIT' 209 | const struct spa_pod p = SPA_POD_INIT(size,type); | ^~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/defs.h:83:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 83 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/builder.h:210:9: note: in expansion of macro 'SPA_FLAG_CLEAR' 210 | SPA_FLAG_CLEAR(builder->state.flags, SPA_POD_BUILDER_FLAG_FIRST); | ^~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_bool(spa_pod_builder*, bool)': /usr/include/spa-0.2/spa/pod/builder.h:214:110: warning: ISO C++ forbids compound-literals [-Wpedantic] 214 | #define SPA_POD_INIT_Bool(val) ((struct spa_pod_bool){ { sizeof(uint32_t), SPA_TYPE_Bool }, (val) ? 1 : 0, 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:218:39: note: in expansion of macro 'SPA_POD_INIT_Bool' 218 | const struct spa_pod_bool p = SPA_POD_INIT_Bool(val); | ^~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_id(spa_pod_builder*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:222:96: warning: ISO C++ forbids compound-literals [-Wpedantic] 222 | #define SPA_POD_INIT_Id(val) ((struct spa_pod_id){ { sizeof(uint32_t), SPA_TYPE_Id }, (val), 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:226:37: note: in expansion of macro 'SPA_POD_INIT_Id' 226 | const struct spa_pod_id p = SPA_POD_INIT_Id(val); | ^~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_int(spa_pod_builder*, int32_t)': /usr/include/spa-0.2/spa/pod/builder.h:230:98: warning: ISO C++ forbids compound-literals [-Wpedantic] 230 | #define SPA_POD_INIT_Int(val) ((struct spa_pod_int){ { sizeof(int32_t), SPA_TYPE_Int }, (val), 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:234:38: note: in expansion of macro 'SPA_POD_INIT_Int' 234 | const struct spa_pod_int p = SPA_POD_INIT_Int(val); | ^~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_long(spa_pod_builder*, int64_t)': /usr/include/spa-0.2/spa/pod/builder.h:238:98: warning: ISO C++ forbids compound-literals [-Wpedantic] 238 | #define SPA_POD_INIT_Long(val) ((struct spa_pod_long){ { sizeof(int64_t), SPA_TYPE_Long }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:242:39: note: in expansion of macro 'SPA_POD_INIT_Long' 242 | const struct spa_pod_long p = SPA_POD_INIT_Long(val); | ^~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_float(spa_pod_builder*, float)': /usr/include/spa-0.2/spa/pod/builder.h:246:102: warning: ISO C++ forbids compound-literals [-Wpedantic] 246 | #define SPA_POD_INIT_Float(val) ((struct spa_pod_float){ { sizeof(float), SPA_TYPE_Float }, (val), 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:250:40: note: in expansion of macro 'SPA_POD_INIT_Float' 250 | const struct spa_pod_float p = SPA_POD_INIT_Float(val); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_double(spa_pod_builder*, double)': /usr/include/spa-0.2/spa/pod/builder.h:254:103: warning: ISO C++ forbids compound-literals [-Wpedantic] 254 | #define SPA_POD_INIT_Double(val) ((struct spa_pod_double){ { sizeof(double), SPA_TYPE_Double }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:258:41: note: in expansion of macro 'SPA_POD_INIT_Double' 258 | const struct spa_pod_double p = SPA_POD_INIT_Double(val); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_string_len(spa_pod_builder*, const char*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:262:87: warning: ISO C++ forbids compound-literals [-Wpedantic] 262 | #define SPA_POD_INIT_String(len) ((struct spa_pod_string){ { (len), SPA_TYPE_String } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:279:41: note: in expansion of macro 'SPA_POD_INIT_String' 279 | const struct spa_pod_string p = SPA_POD_INIT_String(len+1); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_bytes(spa_pod_builder*, const void*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:292:84: warning: ISO C++ forbids compound-literals [-Wpedantic] 292 | #define SPA_POD_INIT_Bytes(len) ((struct spa_pod_bytes){ { (len), SPA_TYPE_Bytes } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:297:40: note: in expansion of macro 'SPA_POD_INIT_Bytes' 297 | const struct spa_pod_bytes p = SPA_POD_INIT_Bytes(len); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_pointer(spa_pod_builder*, uint32_t, const void*)': /usr/include/spa-0.2/spa/pod/builder.h:312:151: warning: ISO C++ forbids compound-literals [-Wpedantic] 312 | #define SPA_POD_INIT_Pointer(type,value) ((struct spa_pod_pointer){ { sizeof(struct spa_pod_pointer_body), SPA_TYPE_Pointer }, { (type), 0, (value) } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:317:42: note: in expansion of macro 'SPA_POD_INIT_Pointer' 317 | const struct spa_pod_pointer p = SPA_POD_INIT_Pointer(type, val); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_fd(spa_pod_builder*, int64_t)': /usr/include/spa-0.2/spa/pod/builder.h:321:90: warning: ISO C++ forbids compound-literals [-Wpedantic] 321 | #define SPA_POD_INIT_Fd(fd) ((struct spa_pod_fd){ { sizeof(int64_t), SPA_TYPE_Fd }, (fd) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:325:37: note: in expansion of macro 'SPA_POD_INIT_Fd' 325 | const struct spa_pod_fd p = SPA_POD_INIT_Fd(fd); | ^~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_rectangle(spa_pod_builder*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/utils/defs.h:100:80: warning: ISO C++ forbids compound-literals [-Wpedantic] 100 | #define SPA_RECTANGLE(width,height) ((struct spa_rectangle){ (width), (height) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:329:121: note: in definition of macro 'SPA_POD_INIT_Rectangle' 329 | #define SPA_POD_INIT_Rectangle(val) ((struct spa_pod_rectangle){ { sizeof(struct spa_rectangle), SPA_TYPE_Rectangle }, (val) }) | ^~~ /usr/include/spa-0.2/spa/pod/builder.h:334:67: note: in expansion of macro 'SPA_RECTANGLE' 334 | const struct spa_pod_rectangle p = SPA_POD_INIT_Rectangle(SPA_RECTANGLE(width, height)); | ^~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:329:126: warning: ISO C++ forbids compound-literals [-Wpedantic] 329 | #define SPA_POD_INIT_Rectangle(val) ((struct spa_pod_rectangle){ { sizeof(struct spa_rectangle), SPA_TYPE_Rectangle }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:334:44: note: in expansion of macro 'SPA_POD_INIT_Rectangle' 334 | const struct spa_pod_rectangle p = SPA_POD_INIT_Rectangle(SPA_RECTANGLE(width, height)); | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_fraction(spa_pod_builder*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/utils/defs.h:118:72: warning: ISO C++ forbids compound-literals [-Wpedantic] 118 | #define SPA_FRACTION(num,denom) ((struct spa_fraction){ (num), (denom) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:338:117: note: in definition of macro 'SPA_POD_INIT_Fraction' 338 | #define SPA_POD_INIT_Fraction(val) ((struct spa_pod_fraction){ { sizeof(struct spa_fraction), SPA_TYPE_Fraction }, (val) }) | ^~~ /usr/include/spa-0.2/spa/pod/builder.h:343:65: note: in expansion of macro 'SPA_FRACTION' 343 | const struct spa_pod_fraction p = SPA_POD_INIT_Fraction(SPA_FRACTION(num, denom)); | ^~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:338:122: warning: ISO C++ forbids compound-literals [-Wpedantic] 338 | #define SPA_POD_INIT_Fraction(val) ((struct spa_pod_fraction){ { sizeof(struct spa_fraction), SPA_TYPE_Fraction }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:343:43: note: in expansion of macro 'SPA_POD_INIT_Fraction' 343 | const struct spa_pod_fraction p = SPA_POD_INIT_Fraction(SPA_FRACTION(num, denom)); | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_push_struct(spa_pod_builder*, spa_pod_frame*)': /usr/include/spa-0.2/spa/pod/builder.h:394:89: warning: ISO C++ forbids compound-literals [-Wpedantic] 394 | #define SPA_POD_INIT_Struct(size) ((struct spa_pod_struct){ { (size), SPA_TYPE_Struct } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:399:41: note: in expansion of macro 'SPA_POD_INIT_Struct' 399 | const struct spa_pod_struct p = SPA_POD_INIT_Struct(0); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_push_object(spa_pod_builder*, spa_pod_frame*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:406:136: warning: ISO C++ forbids compound-literals [-Wpedantic] 406 | #define SPA_POD_INIT_Object(size,type,id,...) ((struct spa_pod_object){ { (size), SPA_TYPE_Object }, { (type), (id) }, ##__VA_ARGS__ }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:413:13: note: in expansion of macro 'SPA_POD_INIT_Object' 413 | SPA_POD_INIT_Object(sizeof(struct spa_pod_object_body), type, id); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_push_sequence(spa_pod_builder*, spa_pod_frame*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:431:80: warning: ISO C++ forbids compound-literals [-Wpedantic] 431 | ((struct spa_pod_sequence){ { (size), SPA_TYPE_Sequence}, {(unit), 0 } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:437:13: note: in expansion of macro 'SPA_POD_INIT_Sequence' 437 | SPA_POD_INIT_Sequence(sizeof(struct spa_pod_sequence_body), unit); | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/raw-utils.h: In function 'int spa_format_video_raw_parse(const spa_pod*, spa_video_info_raw*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/raw-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/raw-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/dsp-utils.h: In function 'int spa_format_video_dsp_parse(const spa_pod*, spa_video_info_dsp*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/dsp-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/dsp-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/h264-utils.h: In function 'int spa_format_video_h264_parse(const spa_pod*, spa_video_info_h264*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/h264-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/h264-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/mjpg-utils.h: In function 'int spa_format_video_mjpg_parse(const spa_pod*, spa_video_info_mjpg*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/mjpg-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/mjpg-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ At global scope: cc1plus: note: unrecognized command-line option '-Wno-c99-extensions' may have been intended to silence earlier diagnostics cc1plus: note: unrecognized command-line option '-Wno-gnu-statement-expression-from-macro-expansion' may have been intended to silence earlier diagnostics [88/113] Building CXX object src/CMakeFiles/KPipeWireRecord.dir/libvpxencoder.cpp.o In file included from /usr/include/spa-0.2/spa/support/plugin.h:13, from /usr/include/pipewire-0.3/pipewire/pipewire.h:12, from /opt/kde/src/kpipewire/src/pipewiresourcestream.h:20, from /opt/kde/src/kpipewire/src/dmabufhandler.h:11, from /opt/kde/src/kpipewire/src/encoder_p.h:15, from /opt/kde/src/kpipewire/src/libvpxencoder_p.h:9, from /opt/kde/src/kpipewire/src/libvpxencoder.cpp:9: /usr/include/spa-0.2/spa/utils/dict.h: In function 'const spa_dict_item* spa_dict_lookup_item(const spa_dict*, const char*)': /usr/include/spa-0.2/spa/utils/dict.h:31:80: warning: ISO C++ forbids compound-literals [-Wpedantic] 31 | #define SPA_DICT_ITEM_INIT(key,value) ((struct spa_dict_item) { (key), (value) }) | ^ /usr/include/spa-0.2/spa/utils/dict.h:70:42: note: in expansion of macro 'SPA_DICT_ITEM_INIT' 70 | struct spa_dict_item k = SPA_DICT_ITEM_INIT(key, NULL); | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/spa-0.2/spa/support/plugin.h:12: /usr/include/pipewire-0.3/pipewire/array.h: In function 'int pw_array_ensure_size(pw_array*, size_t)': /usr/include/spa-0.2/spa/utils/defs.h:271:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 271 | ({ \ | ^ /usr/include/pipewire-0.3/pipewire/array.h:115:25: note: in expansion of macro 'SPA_ROUND_UP' 115 | alloc = SPA_ROUND_UP(need, arr->extend); | ^~~~~~~~~~~~ In file included from /usr/include/spa-0.2/spa/utils/hook.h:13, from /usr/include/pipewire-0.3/pipewire/proxy.h:12, from /usr/include/pipewire-0.3/pipewire/client.h:15, from /usr/include/pipewire-0.3/pipewire/pipewire.h:15: /usr/include/spa-0.2/spa/utils/list.h: In function 'void spa_list_init(spa_list*)': /usr/include/spa-0.2/spa/utils/list.h:27:64: warning: ISO C++ forbids compound-literals [-Wpedantic] 27 | #define SPA_LIST_INIT(list) ((struct spa_list){ (list), (list) }) | ^ /usr/include/spa-0.2/spa/utils/list.h:31:17: note: in expansion of macro 'SPA_LIST_INIT' 31 | *list = SPA_LIST_INIT(list); | ^~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/hook.h: In function 'void spa_hook_list_append(spa_hook_list*, spa_hook*, const void*, void*)': /usr/include/spa-0.2/spa/utils/hook.h:125:86: warning: ISO C++ forbids compound-literals [-Wpedantic] 125 | #define SPA_CALLBACKS_INIT(_funcs,_data) ((struct spa_callbacks){ (_funcs), (_data), }) | ^ /usr/include/spa-0.2/spa/utils/hook.h:367:20: note: in expansion of macro 'SPA_CALLBACKS_INIT' 367 | hook->cb = SPA_CALLBACKS_INIT(funcs, data); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/hook.h: In function 'void spa_hook_list_prepend(spa_hook_list*, spa_hook*, const void*, void*)': /usr/include/spa-0.2/spa/utils/hook.h:125:86: warning: ISO C++ forbids compound-literals [-Wpedantic] 125 | #define SPA_CALLBACKS_INIT(_funcs,_data) ((struct spa_callbacks){ (_funcs), (_data), }) | ^ /usr/include/spa-0.2/spa/utils/hook.h:377:20: note: in expansion of macro 'SPA_CALLBACKS_INIT' 377 | hook->cb = SPA_CALLBACKS_INIT(funcs, data); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/string.h: In function 'int spa_strbuf_append(spa_strbuf*, const char*, ...)': /usr/include/spa-0.2/spa/utils/defs.h:147:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 147 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/string.h:384:29: note: in expansion of macro 'SPA_MIN' 384 | buf->pos += SPA_MIN(remain, (size_t)written); | ^~~~~~~ In file included from /usr/include/pipewire-0.3/pipewire/context.h:48, from /usr/include/pipewire-0.3/pipewire/protocol.h:26, from /usr/include/pipewire-0.3/pipewire/proxy.h:90: /usr/include/pipewire-0.3/pipewire/core.h: In function 'int pw_core_errorv(pw_core*, uint32_t, int, int, const char*, __va_list_tag*)': /usr/include/pipewire-0.3/pipewire/core.h:338:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 338 | ({ \ | ^ /usr/include/pipewire-0.3/pipewire/core.h:350:41: note: in expansion of macro 'pw_core_method' 350 | #define pw_core_error(c,...) pw_core_method(c,error,0,__VA_ARGS__) | ^~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:361:16: note: in expansion of macro 'pw_core_error' 361 | return pw_core_error(core, id, seq, res, buffer); | ^~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:340:9: note: in expansion of macro 'spa_interface_call_res' 340 | spa_interface_call_res((struct spa_interface*)o, \ | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:350:41: note: in expansion of macro 'pw_core_method' 350 | #define pw_core_error(c,...) pw_core_method(c,error,0,__VA_ARGS__) | ^~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:361:16: note: in expansion of macro 'pw_core_error' 361 | return pw_core_error(core, id, seq, res, buffer); | ^~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h: In function 'pw_registry* pw_core_get_registry(pw_core*, uint32_t, size_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:381:9: note: in expansion of macro 'spa_interface_call_res' 381 | spa_interface_call_res((struct spa_interface*)core, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h: In function 'void* pw_core_create_object(pw_core*, const char*, const char*, uint32_t, const spa_dict*, size_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:396:9: note: in expansion of macro 'spa_interface_call_res' 396 | spa_interface_call_res((struct spa_interface*)core, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h: In function 'void* pw_registry_bind(pw_registry*, uint32_t, const char*, uint32_t, size_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:537:9: note: in expansion of macro 'spa_interface_call_res' 537 | spa_interface_call_res((struct spa_interface*)registry, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/log.h: In function 'void spa_log_topic_init(spa_log*, spa_log_topic*)': /usr/include/spa-0.2/spa/utils/hook.h:157:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 157 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:230:9: note: in expansion of macro 'spa_callbacks_call' 230 | spa_callbacks_call(&(iface)->cb,method_type,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/log.h:221:9: note: in expansion of macro 'spa_interface_call' 221 | spa_interface_call(&log->iface, struct spa_log_methods, topic_init, 1, topic); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'spa_thread* spa_thread_utils_create(spa_thread_utils*, const spa_dict*, void* (*)(void*), void*)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:65:9: note: in expansion of macro 'spa_interface_call_res' 65 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_join(spa_thread_utils*, spa_thread*, void**)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:77:9: note: in expansion of macro 'spa_interface_call_res' 77 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_get_rt_range(spa_thread_utils*, const spa_dict*, int*, int*)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:89:9: note: in expansion of macro 'spa_interface_call_res' 89 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_acquire_rt(spa_thread_utils*, spa_thread*, int)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:101:9: note: in expansion of macro 'spa_interface_call_res' 101 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_drop_rt(spa_thread_utils*, spa_thread*)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:113:9: note: in expansion of macro 'spa_interface_call_res' 113 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/iter.h: In function 'uint32_t spa_pod_copy_array(const spa_pod*, uint32_t, void*, uint32_t)': /usr/include/spa-0.2/spa/utils/defs.h:147:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 147 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/iter.h:337:20: note: in expansion of macro 'SPA_MIN' 337 | n_values = SPA_MIN(n_values, max_values); | ^~~~~~~ /usr/include/spa-0.2/spa/pod/iter.h: In function 'spa_pod* spa_pod_get_values(const spa_pod*, uint32_t*, uint32_t*)': /usr/include/spa-0.2/spa/utils/defs.h:147:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 147 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/iter.h:353:35: note: in expansion of macro 'SPA_MIN' 353 | *n_vals = SPA_MIN(1u, SPA_POD_CHOICE_N_VALUES(pod)); | ^~~~~~~ In file included from /usr/include/spa-0.2/spa/param/format-utils.h:18, from /opt/kde/src/kpipewire/src/pipewiresourcestream.h:21: /usr/include/spa-0.2/spa/pod/parser.h: In function 'void spa_pod_parser_init(spa_pod_parser*, const void*, uint32_t)': /usr/include/spa-0.2/spa/pod/parser.h:36:94: warning: ISO C++ forbids compound-literals [-Wpedantic] 36 | #define SPA_POD_PARSER_INIT(buffer,size) ((struct spa_pod_parser){ (buffer), (size), 0, {0} }) | ^ /usr/include/spa-0.2/spa/pod/parser.h:41:19: note: in expansion of macro 'SPA_POD_PARSER_INIT' 41 | *parser = SPA_POD_PARSER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:36:94: warning: missing initializer for member 'spa_pod_parser_state::flags' [-Wmissing-field-initializers] 36 | #define SPA_POD_PARSER_INIT(buffer,size) ((struct spa_pod_parser){ (buffer), (size), 0, {0} }) | ^ /usr/include/spa-0.2/spa/pod/parser.h:41:19: note: in expansion of macro 'SPA_POD_PARSER_INIT' 41 | *parser = SPA_POD_PARSER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:36:94: warning: missing initializer for member 'spa_pod_parser_state::frame' [-Wmissing-field-initializers] 36 | #define SPA_POD_PARSER_INIT(buffer,size) ((struct spa_pod_parser){ (buffer), (size), 0, {0} }) | ^ /usr/include/spa-0.2/spa/pod/parser.h:41:19: note: in expansion of macro 'SPA_POD_PARSER_INIT' 41 | *parser = SPA_POD_PARSER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/format-utils.h: In function 'int spa_format_parse(const spa_pod*, uint32_t*, uint32_t*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/format-utils.h:24:16: note: in expansion of macro 'spa_pod_parse_object' 24 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/format-utils.h:24:16: note: in expansion of macro 'spa_pod_parse_object' 24 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'void spa_pod_builder_set_callbacks(spa_pod_builder*, const spa_pod_builder_callbacks*, void*)': /usr/include/spa-0.2/spa/utils/hook.h:125:86: warning: ISO C++ forbids compound-literals [-Wpedantic] 125 | #define SPA_CALLBACKS_INIT(_funcs,_data) ((struct spa_callbacks){ (_funcs), (_data), }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:64:30: note: in expansion of macro 'SPA_CALLBACKS_INIT' 64 | builder->callbacks = SPA_CALLBACKS_INIT(callbacks, data); | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/spa-0.2/spa/param/video/raw-utils.h:18, from /usr/include/spa-0.2/spa/param/video/format-utils.h:14, from /opt/kde/src/kpipewire/src/pipewiresourcestream.h:23: /usr/include/spa-0.2/spa/pod/builder.h: In function 'void spa_pod_builder_init(spa_pod_builder*, void*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: ISO C++ forbids compound-literals [-Wpedantic] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: missing initializer for member 'spa_pod_builder_state::flags' [-Wmissing-field-initializers] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: missing initializer for member 'spa_pod_builder_state::frame' [-Wmissing-field-initializers] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: missing initializer for member 'spa_callbacks::data' [-Wmissing-field-initializers] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_raw(spa_pod_builder*, const void*, uint32_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/builder.h:127:25: note: in expansion of macro 'spa_callbacks_call_res' 127 | spa_callbacks_call_res(&builder->callbacks, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_primitive(spa_pod_builder*, const spa_pod*)': /usr/include/spa-0.2/spa/utils/defs.h:83:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 83 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/builder.h:188:17: note: in expansion of macro 'SPA_FLAG_CLEAR' 188 | SPA_FLAG_CLEAR(builder->state.flags, SPA_POD_BUILDER_FLAG_FIRST); | ^~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_none(spa_pod_builder*)': /usr/include/spa-0.2/spa/pod/builder.h:197:68: warning: ISO C++ forbids compound-literals [-Wpedantic] 197 | #define SPA_POD_INIT(size,type) ((struct spa_pod) { (size), (type) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:199:29: note: in expansion of macro 'SPA_POD_INIT' 199 | #define SPA_POD_INIT_None() SPA_POD_INIT(0, SPA_TYPE_None) | ^~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:203:34: note: in expansion of macro 'SPA_POD_INIT_None' 203 | const struct spa_pod p = SPA_POD_INIT_None(); | ^~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_child(spa_pod_builder*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:197:68: warning: ISO C++ forbids compound-literals [-Wpedantic] 197 | #define SPA_POD_INIT(size,type) ((struct spa_pod) { (size), (type) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:209:34: note: in expansion of macro 'SPA_POD_INIT' 209 | const struct spa_pod p = SPA_POD_INIT(size,type); | ^~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/defs.h:83:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 83 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/builder.h:210:9: note: in expansion of macro 'SPA_FLAG_CLEAR' 210 | SPA_FLAG_CLEAR(builder->state.flags, SPA_POD_BUILDER_FLAG_FIRST); | ^~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_bool(spa_pod_builder*, bool)': /usr/include/spa-0.2/spa/pod/builder.h:214:110: warning: ISO C++ forbids compound-literals [-Wpedantic] 214 | #define SPA_POD_INIT_Bool(val) ((struct spa_pod_bool){ { sizeof(uint32_t), SPA_TYPE_Bool }, (val) ? 1 : 0, 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:218:39: note: in expansion of macro 'SPA_POD_INIT_Bool' 218 | const struct spa_pod_bool p = SPA_POD_INIT_Bool(val); | ^~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_id(spa_pod_builder*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:222:96: warning: ISO C++ forbids compound-literals [-Wpedantic] 222 | #define SPA_POD_INIT_Id(val) ((struct spa_pod_id){ { sizeof(uint32_t), SPA_TYPE_Id }, (val), 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:226:37: note: in expansion of macro 'SPA_POD_INIT_Id' 226 | const struct spa_pod_id p = SPA_POD_INIT_Id(val); | ^~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_int(spa_pod_builder*, int32_t)': /usr/include/spa-0.2/spa/pod/builder.h:230:98: warning: ISO C++ forbids compound-literals [-Wpedantic] 230 | #define SPA_POD_INIT_Int(val) ((struct spa_pod_int){ { sizeof(int32_t), SPA_TYPE_Int }, (val), 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:234:38: note: in expansion of macro 'SPA_POD_INIT_Int' 234 | const struct spa_pod_int p = SPA_POD_INIT_Int(val); | ^~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_long(spa_pod_builder*, int64_t)': /usr/include/spa-0.2/spa/pod/builder.h:238:98: warning: ISO C++ forbids compound-literals [-Wpedantic] 238 | #define SPA_POD_INIT_Long(val) ((struct spa_pod_long){ { sizeof(int64_t), SPA_TYPE_Long }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:242:39: note: in expansion of macro 'SPA_POD_INIT_Long' 242 | const struct spa_pod_long p = SPA_POD_INIT_Long(val); | ^~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_float(spa_pod_builder*, float)': /usr/include/spa-0.2/spa/pod/builder.h:246:102: warning: ISO C++ forbids compound-literals [-Wpedantic] 246 | #define SPA_POD_INIT_Float(val) ((struct spa_pod_float){ { sizeof(float), SPA_TYPE_Float }, (val), 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:250:40: note: in expansion of macro 'SPA_POD_INIT_Float' 250 | const struct spa_pod_float p = SPA_POD_INIT_Float(val); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_double(spa_pod_builder*, double)': /usr/include/spa-0.2/spa/pod/builder.h:254:103: warning: ISO C++ forbids compound-literals [-Wpedantic] 254 | #define SPA_POD_INIT_Double(val) ((struct spa_pod_double){ { sizeof(double), SPA_TYPE_Double }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:258:41: note: in expansion of macro 'SPA_POD_INIT_Double' 258 | const struct spa_pod_double p = SPA_POD_INIT_Double(val); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_string_len(spa_pod_builder*, const char*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:262:87: warning: ISO C++ forbids compound-literals [-Wpedantic] 262 | #define SPA_POD_INIT_String(len) ((struct spa_pod_string){ { (len), SPA_TYPE_String } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:279:41: note: in expansion of macro 'SPA_POD_INIT_String' 279 | const struct spa_pod_string p = SPA_POD_INIT_String(len+1); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_bytes(spa_pod_builder*, const void*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:292:84: warning: ISO C++ forbids compound-literals [-Wpedantic] 292 | #define SPA_POD_INIT_Bytes(len) ((struct spa_pod_bytes){ { (len), SPA_TYPE_Bytes } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:297:40: note: in expansion of macro 'SPA_POD_INIT_Bytes' 297 | const struct spa_pod_bytes p = SPA_POD_INIT_Bytes(len); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_pointer(spa_pod_builder*, uint32_t, const void*)': /usr/include/spa-0.2/spa/pod/builder.h:312:151: warning: ISO C++ forbids compound-literals [-Wpedantic] 312 | #define SPA_POD_INIT_Pointer(type,value) ((struct spa_pod_pointer){ { sizeof(struct spa_pod_pointer_body), SPA_TYPE_Pointer }, { (type), 0, (value) } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:317:42: note: in expansion of macro 'SPA_POD_INIT_Pointer' 317 | const struct spa_pod_pointer p = SPA_POD_INIT_Pointer(type, val); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_fd(spa_pod_builder*, int64_t)': /usr/include/spa-0.2/spa/pod/builder.h:321:90: warning: ISO C++ forbids compound-literals [-Wpedantic] 321 | #define SPA_POD_INIT_Fd(fd) ((struct spa_pod_fd){ { sizeof(int64_t), SPA_TYPE_Fd }, (fd) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:325:37: note: in expansion of macro 'SPA_POD_INIT_Fd' 325 | const struct spa_pod_fd p = SPA_POD_INIT_Fd(fd); | ^~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_rectangle(spa_pod_builder*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/utils/defs.h:100:80: warning: ISO C++ forbids compound-literals [-Wpedantic] 100 | #define SPA_RECTANGLE(width,height) ((struct spa_rectangle){ (width), (height) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:329:121: note: in definition of macro 'SPA_POD_INIT_Rectangle' 329 | #define SPA_POD_INIT_Rectangle(val) ((struct spa_pod_rectangle){ { sizeof(struct spa_rectangle), SPA_TYPE_Rectangle }, (val) }) | ^~~ /usr/include/spa-0.2/spa/pod/builder.h:334:67: note: in expansion of macro 'SPA_RECTANGLE' 334 | const struct spa_pod_rectangle p = SPA_POD_INIT_Rectangle(SPA_RECTANGLE(width, height)); | ^~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:329:126: warning: ISO C++ forbids compound-literals [-Wpedantic] 329 | #define SPA_POD_INIT_Rectangle(val) ((struct spa_pod_rectangle){ { sizeof(struct spa_rectangle), SPA_TYPE_Rectangle }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:334:44: note: in expansion of macro 'SPA_POD_INIT_Rectangle' 334 | const struct spa_pod_rectangle p = SPA_POD_INIT_Rectangle(SPA_RECTANGLE(width, height)); | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_fraction(spa_pod_builder*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/utils/defs.h:118:72: warning: ISO C++ forbids compound-literals [-Wpedantic] 118 | #define SPA_FRACTION(num,denom) ((struct spa_fraction){ (num), (denom) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:338:117: note: in definition of macro 'SPA_POD_INIT_Fraction' 338 | #define SPA_POD_INIT_Fraction(val) ((struct spa_pod_fraction){ { sizeof(struct spa_fraction), SPA_TYPE_Fraction }, (val) }) | ^~~ /usr/include/spa-0.2/spa/pod/builder.h:343:65: note: in expansion of macro 'SPA_FRACTION' 343 | const struct spa_pod_fraction p = SPA_POD_INIT_Fraction(SPA_FRACTION(num, denom)); | ^~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:338:122: warning: ISO C++ forbids compound-literals [-Wpedantic] 338 | #define SPA_POD_INIT_Fraction(val) ((struct spa_pod_fraction){ { sizeof(struct spa_fraction), SPA_TYPE_Fraction }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:343:43: note: in expansion of macro 'SPA_POD_INIT_Fraction' 343 | const struct spa_pod_fraction p = SPA_POD_INIT_Fraction(SPA_FRACTION(num, denom)); | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_push_struct(spa_pod_builder*, spa_pod_frame*)': /usr/include/spa-0.2/spa/pod/builder.h:394:89: warning: ISO C++ forbids compound-literals [-Wpedantic] 394 | #define SPA_POD_INIT_Struct(size) ((struct spa_pod_struct){ { (size), SPA_TYPE_Struct } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:399:41: note: in expansion of macro 'SPA_POD_INIT_Struct' 399 | const struct spa_pod_struct p = SPA_POD_INIT_Struct(0); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_push_object(spa_pod_builder*, spa_pod_frame*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:406:136: warning: ISO C++ forbids compound-literals [-Wpedantic] 406 | #define SPA_POD_INIT_Object(size,type,id,...) ((struct spa_pod_object){ { (size), SPA_TYPE_Object }, { (type), (id) }, ##__VA_ARGS__ }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:413:13: note: in expansion of macro 'SPA_POD_INIT_Object' 413 | SPA_POD_INIT_Object(sizeof(struct spa_pod_object_body), type, id); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_push_sequence(spa_pod_builder*, spa_pod_frame*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:431:80: warning: ISO C++ forbids compound-literals [-Wpedantic] 431 | ((struct spa_pod_sequence){ { (size), SPA_TYPE_Sequence}, {(unit), 0 } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:437:13: note: in expansion of macro 'SPA_POD_INIT_Sequence' 437 | SPA_POD_INIT_Sequence(sizeof(struct spa_pod_sequence_body), unit); | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/raw-utils.h: In function 'int spa_format_video_raw_parse(const spa_pod*, spa_video_info_raw*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/raw-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/raw-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/dsp-utils.h: In function 'int spa_format_video_dsp_parse(const spa_pod*, spa_video_info_dsp*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/dsp-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/dsp-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/h264-utils.h: In function 'int spa_format_video_h264_parse(const spa_pod*, spa_video_info_h264*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/h264-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/h264-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/mjpg-utils.h: In function 'int spa_format_video_mjpg_parse(const spa_pod*, spa_video_info_mjpg*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/mjpg-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/mjpg-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ At global scope: cc1plus: note: unrecognized command-line option '-Wno-c99-extensions' may have been intended to silence earlier diagnostics cc1plus: note: unrecognized command-line option '-Wno-gnu-statement-expression-from-macro-expansion' may have been intended to silence earlier diagnostics [89/113] Building CXX object src/CMakeFiles/KPipeWireRecord.dir/libvpxvp9encoder.cpp.o In file included from /usr/include/spa-0.2/spa/support/plugin.h:13, from /usr/include/pipewire-0.3/pipewire/pipewire.h:12, from /opt/kde/src/kpipewire/src/pipewiresourcestream.h:20, from /opt/kde/src/kpipewire/src/dmabufhandler.h:11, from /opt/kde/src/kpipewire/src/encoder_p.h:15, from /opt/kde/src/kpipewire/src/libvpxvp9encoder_p.h:10, from /opt/kde/src/kpipewire/src/libvpxvp9encoder.cpp:10: /usr/include/spa-0.2/spa/utils/dict.h: In function 'const spa_dict_item* spa_dict_lookup_item(const spa_dict*, const char*)': /usr/include/spa-0.2/spa/utils/dict.h:31:80: warning: ISO C++ forbids compound-literals [-Wpedantic] 31 | #define SPA_DICT_ITEM_INIT(key,value) ((struct spa_dict_item) { (key), (value) }) | ^ /usr/include/spa-0.2/spa/utils/dict.h:70:42: note: in expansion of macro 'SPA_DICT_ITEM_INIT' 70 | struct spa_dict_item k = SPA_DICT_ITEM_INIT(key, NULL); | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/spa-0.2/spa/support/plugin.h:12: /usr/include/pipewire-0.3/pipewire/array.h: In function 'int pw_array_ensure_size(pw_array*, size_t)': /usr/include/spa-0.2/spa/utils/defs.h:271:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 271 | ({ \ | ^ /usr/include/pipewire-0.3/pipewire/array.h:115:25: note: in expansion of macro 'SPA_ROUND_UP' 115 | alloc = SPA_ROUND_UP(need, arr->extend); | ^~~~~~~~~~~~ In file included from /usr/include/spa-0.2/spa/utils/hook.h:13, from /usr/include/pipewire-0.3/pipewire/proxy.h:12, from /usr/include/pipewire-0.3/pipewire/client.h:15, from /usr/include/pipewire-0.3/pipewire/pipewire.h:15: /usr/include/spa-0.2/spa/utils/list.h: In function 'void spa_list_init(spa_list*)': /usr/include/spa-0.2/spa/utils/list.h:27:64: warning: ISO C++ forbids compound-literals [-Wpedantic] 27 | #define SPA_LIST_INIT(list) ((struct spa_list){ (list), (list) }) | ^ /usr/include/spa-0.2/spa/utils/list.h:31:17: note: in expansion of macro 'SPA_LIST_INIT' 31 | *list = SPA_LIST_INIT(list); | ^~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/hook.h: In function 'void spa_hook_list_append(spa_hook_list*, spa_hook*, const void*, void*)': /usr/include/spa-0.2/spa/utils/hook.h:125:86: warning: ISO C++ forbids compound-literals [-Wpedantic] 125 | #define SPA_CALLBACKS_INIT(_funcs,_data) ((struct spa_callbacks){ (_funcs), (_data), }) | ^ /usr/include/spa-0.2/spa/utils/hook.h:367:20: note: in expansion of macro 'SPA_CALLBACKS_INIT' 367 | hook->cb = SPA_CALLBACKS_INIT(funcs, data); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/hook.h: In function 'void spa_hook_list_prepend(spa_hook_list*, spa_hook*, const void*, void*)': /usr/include/spa-0.2/spa/utils/hook.h:125:86: warning: ISO C++ forbids compound-literals [-Wpedantic] 125 | #define SPA_CALLBACKS_INIT(_funcs,_data) ((struct spa_callbacks){ (_funcs), (_data), }) | ^ /usr/include/spa-0.2/spa/utils/hook.h:377:20: note: in expansion of macro 'SPA_CALLBACKS_INIT' 377 | hook->cb = SPA_CALLBACKS_INIT(funcs, data); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/string.h: In function 'int spa_strbuf_append(spa_strbuf*, const char*, ...)': /usr/include/spa-0.2/spa/utils/defs.h:147:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 147 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/string.h:384:29: note: in expansion of macro 'SPA_MIN' 384 | buf->pos += SPA_MIN(remain, (size_t)written); | ^~~~~~~ In file included from /usr/include/pipewire-0.3/pipewire/context.h:48, from /usr/include/pipewire-0.3/pipewire/protocol.h:26, from /usr/include/pipewire-0.3/pipewire/proxy.h:90: /usr/include/pipewire-0.3/pipewire/core.h: In function 'int pw_core_errorv(pw_core*, uint32_t, int, int, const char*, __va_list_tag*)': /usr/include/pipewire-0.3/pipewire/core.h:338:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 338 | ({ \ | ^ /usr/include/pipewire-0.3/pipewire/core.h:350:41: note: in expansion of macro 'pw_core_method' 350 | #define pw_core_error(c,...) pw_core_method(c,error,0,__VA_ARGS__) | ^~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:361:16: note: in expansion of macro 'pw_core_error' 361 | return pw_core_error(core, id, seq, res, buffer); | ^~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:340:9: note: in expansion of macro 'spa_interface_call_res' 340 | spa_interface_call_res((struct spa_interface*)o, \ | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:350:41: note: in expansion of macro 'pw_core_method' 350 | #define pw_core_error(c,...) pw_core_method(c,error,0,__VA_ARGS__) | ^~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:361:16: note: in expansion of macro 'pw_core_error' 361 | return pw_core_error(core, id, seq, res, buffer); | ^~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h: In function 'pw_registry* pw_core_get_registry(pw_core*, uint32_t, size_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:381:9: note: in expansion of macro 'spa_interface_call_res' 381 | spa_interface_call_res((struct spa_interface*)core, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h: In function 'void* pw_core_create_object(pw_core*, const char*, const char*, uint32_t, const spa_dict*, size_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:396:9: note: in expansion of macro 'spa_interface_call_res' 396 | spa_interface_call_res((struct spa_interface*)core, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h: In function 'void* pw_registry_bind(pw_registry*, uint32_t, const char*, uint32_t, size_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:537:9: note: in expansion of macro 'spa_interface_call_res' 537 | spa_interface_call_res((struct spa_interface*)registry, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/log.h: In function 'void spa_log_topic_init(spa_log*, spa_log_topic*)': /usr/include/spa-0.2/spa/utils/hook.h:157:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 157 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:230:9: note: in expansion of macro 'spa_callbacks_call' 230 | spa_callbacks_call(&(iface)->cb,method_type,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/log.h:221:9: note: in expansion of macro 'spa_interface_call' 221 | spa_interface_call(&log->iface, struct spa_log_methods, topic_init, 1, topic); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'spa_thread* spa_thread_utils_create(spa_thread_utils*, const spa_dict*, void* (*)(void*), void*)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:65:9: note: in expansion of macro 'spa_interface_call_res' 65 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_join(spa_thread_utils*, spa_thread*, void**)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:77:9: note: in expansion of macro 'spa_interface_call_res' 77 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_get_rt_range(spa_thread_utils*, const spa_dict*, int*, int*)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:89:9: note: in expansion of macro 'spa_interface_call_res' 89 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_acquire_rt(spa_thread_utils*, spa_thread*, int)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:101:9: note: in expansion of macro 'spa_interface_call_res' 101 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_drop_rt(spa_thread_utils*, spa_thread*)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:113:9: note: in expansion of macro 'spa_interface_call_res' 113 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/iter.h: In function 'uint32_t spa_pod_copy_array(const spa_pod*, uint32_t, void*, uint32_t)': /usr/include/spa-0.2/spa/utils/defs.h:147:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 147 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/iter.h:337:20: note: in expansion of macro 'SPA_MIN' 337 | n_values = SPA_MIN(n_values, max_values); | ^~~~~~~ /usr/include/spa-0.2/spa/pod/iter.h: In function 'spa_pod* spa_pod_get_values(const spa_pod*, uint32_t*, uint32_t*)': /usr/include/spa-0.2/spa/utils/defs.h:147:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 147 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/iter.h:353:35: note: in expansion of macro 'SPA_MIN' 353 | *n_vals = SPA_MIN(1u, SPA_POD_CHOICE_N_VALUES(pod)); | ^~~~~~~ In file included from /usr/include/spa-0.2/spa/param/format-utils.h:18, from /opt/kde/src/kpipewire/src/pipewiresourcestream.h:21: /usr/include/spa-0.2/spa/pod/parser.h: In function 'void spa_pod_parser_init(spa_pod_parser*, const void*, uint32_t)': /usr/include/spa-0.2/spa/pod/parser.h:36:94: warning: ISO C++ forbids compound-literals [-Wpedantic] 36 | #define SPA_POD_PARSER_INIT(buffer,size) ((struct spa_pod_parser){ (buffer), (size), 0, {0} }) | ^ /usr/include/spa-0.2/spa/pod/parser.h:41:19: note: in expansion of macro 'SPA_POD_PARSER_INIT' 41 | *parser = SPA_POD_PARSER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:36:94: warning: missing initializer for member 'spa_pod_parser_state::flags' [-Wmissing-field-initializers] 36 | #define SPA_POD_PARSER_INIT(buffer,size) ((struct spa_pod_parser){ (buffer), (size), 0, {0} }) | ^ /usr/include/spa-0.2/spa/pod/parser.h:41:19: note: in expansion of macro 'SPA_POD_PARSER_INIT' 41 | *parser = SPA_POD_PARSER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:36:94: warning: missing initializer for member 'spa_pod_parser_state::frame' [-Wmissing-field-initializers] 36 | #define SPA_POD_PARSER_INIT(buffer,size) ((struct spa_pod_parser){ (buffer), (size), 0, {0} }) | ^ /usr/include/spa-0.2/spa/pod/parser.h:41:19: note: in expansion of macro 'SPA_POD_PARSER_INIT' 41 | *parser = SPA_POD_PARSER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/format-utils.h: In function 'int spa_format_parse(const spa_pod*, uint32_t*, uint32_t*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/format-utils.h:24:16: note: in expansion of macro 'spa_pod_parse_object' 24 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/format-utils.h:24:16: note: in expansion of macro 'spa_pod_parse_object' 24 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'void spa_pod_builder_set_callbacks(spa_pod_builder*, const spa_pod_builder_callbacks*, void*)': /usr/include/spa-0.2/spa/utils/hook.h:125:86: warning: ISO C++ forbids compound-literals [-Wpedantic] 125 | #define SPA_CALLBACKS_INIT(_funcs,_data) ((struct spa_callbacks){ (_funcs), (_data), }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:64:30: note: in expansion of macro 'SPA_CALLBACKS_INIT' 64 | builder->callbacks = SPA_CALLBACKS_INIT(callbacks, data); | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/spa-0.2/spa/param/video/raw-utils.h:18, from /usr/include/spa-0.2/spa/param/video/format-utils.h:14, from /opt/kde/src/kpipewire/src/pipewiresourcestream.h:23: /usr/include/spa-0.2/spa/pod/builder.h: In function 'void spa_pod_builder_init(spa_pod_builder*, void*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: ISO C++ forbids compound-literals [-Wpedantic] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: missing initializer for member 'spa_pod_builder_state::flags' [-Wmissing-field-initializers] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: missing initializer for member 'spa_pod_builder_state::frame' [-Wmissing-field-initializers] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: missing initializer for member 'spa_callbacks::data' [-Wmissing-field-initializers] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_raw(spa_pod_builder*, const void*, uint32_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/builder.h:127:25: note: in expansion of macro 'spa_callbacks_call_res' 127 | spa_callbacks_call_res(&builder->callbacks, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_primitive(spa_pod_builder*, const spa_pod*)': /usr/include/spa-0.2/spa/utils/defs.h:83:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 83 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/builder.h:188:17: note: in expansion of macro 'SPA_FLAG_CLEAR' 188 | SPA_FLAG_CLEAR(builder->state.flags, SPA_POD_BUILDER_FLAG_FIRST); | ^~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_none(spa_pod_builder*)': /usr/include/spa-0.2/spa/pod/builder.h:197:68: warning: ISO C++ forbids compound-literals [-Wpedantic] 197 | #define SPA_POD_INIT(size,type) ((struct spa_pod) { (size), (type) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:199:29: note: in expansion of macro 'SPA_POD_INIT' 199 | #define SPA_POD_INIT_None() SPA_POD_INIT(0, SPA_TYPE_None) | ^~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:203:34: note: in expansion of macro 'SPA_POD_INIT_None' 203 | const struct spa_pod p = SPA_POD_INIT_None(); | ^~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_child(spa_pod_builder*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:197:68: warning: ISO C++ forbids compound-literals [-Wpedantic] 197 | #define SPA_POD_INIT(size,type) ((struct spa_pod) { (size), (type) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:209:34: note: in expansion of macro 'SPA_POD_INIT' 209 | const struct spa_pod p = SPA_POD_INIT(size,type); | ^~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/defs.h:83:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 83 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/builder.h:210:9: note: in expansion of macro 'SPA_FLAG_CLEAR' 210 | SPA_FLAG_CLEAR(builder->state.flags, SPA_POD_BUILDER_FLAG_FIRST); | ^~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_bool(spa_pod_builder*, bool)': /usr/include/spa-0.2/spa/pod/builder.h:214:110: warning: ISO C++ forbids compound-literals [-Wpedantic] 214 | #define SPA_POD_INIT_Bool(val) ((struct spa_pod_bool){ { sizeof(uint32_t), SPA_TYPE_Bool }, (val) ? 1 : 0, 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:218:39: note: in expansion of macro 'SPA_POD_INIT_Bool' 218 | const struct spa_pod_bool p = SPA_POD_INIT_Bool(val); | ^~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_id(spa_pod_builder*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:222:96: warning: ISO C++ forbids compound-literals [-Wpedantic] 222 | #define SPA_POD_INIT_Id(val) ((struct spa_pod_id){ { sizeof(uint32_t), SPA_TYPE_Id }, (val), 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:226:37: note: in expansion of macro 'SPA_POD_INIT_Id' 226 | const struct spa_pod_id p = SPA_POD_INIT_Id(val); | ^~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_int(spa_pod_builder*, int32_t)': /usr/include/spa-0.2/spa/pod/builder.h:230:98: warning: ISO C++ forbids compound-literals [-Wpedantic] 230 | #define SPA_POD_INIT_Int(val) ((struct spa_pod_int){ { sizeof(int32_t), SPA_TYPE_Int }, (val), 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:234:38: note: in expansion of macro 'SPA_POD_INIT_Int' 234 | const struct spa_pod_int p = SPA_POD_INIT_Int(val); | ^~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_long(spa_pod_builder*, int64_t)': /usr/include/spa-0.2/spa/pod/builder.h:238:98: warning: ISO C++ forbids compound-literals [-Wpedantic] 238 | #define SPA_POD_INIT_Long(val) ((struct spa_pod_long){ { sizeof(int64_t), SPA_TYPE_Long }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:242:39: note: in expansion of macro 'SPA_POD_INIT_Long' 242 | const struct spa_pod_long p = SPA_POD_INIT_Long(val); | ^~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_float(spa_pod_builder*, float)': /usr/include/spa-0.2/spa/pod/builder.h:246:102: warning: ISO C++ forbids compound-literals [-Wpedantic] 246 | #define SPA_POD_INIT_Float(val) ((struct spa_pod_float){ { sizeof(float), SPA_TYPE_Float }, (val), 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:250:40: note: in expansion of macro 'SPA_POD_INIT_Float' 250 | const struct spa_pod_float p = SPA_POD_INIT_Float(val); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_double(spa_pod_builder*, double)': /usr/include/spa-0.2/spa/pod/builder.h:254:103: warning: ISO C++ forbids compound-literals [-Wpedantic] 254 | #define SPA_POD_INIT_Double(val) ((struct spa_pod_double){ { sizeof(double), SPA_TYPE_Double }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:258:41: note: in expansion of macro 'SPA_POD_INIT_Double' 258 | const struct spa_pod_double p = SPA_POD_INIT_Double(val); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_string_len(spa_pod_builder*, const char*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:262:87: warning: ISO C++ forbids compound-literals [-Wpedantic] 262 | #define SPA_POD_INIT_String(len) ((struct spa_pod_string){ { (len), SPA_TYPE_String } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:279:41: note: in expansion of macro 'SPA_POD_INIT_String' 279 | const struct spa_pod_string p = SPA_POD_INIT_String(len+1); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_bytes(spa_pod_builder*, const void*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:292:84: warning: ISO C++ forbids compound-literals [-Wpedantic] 292 | #define SPA_POD_INIT_Bytes(len) ((struct spa_pod_bytes){ { (len), SPA_TYPE_Bytes } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:297:40: note: in expansion of macro 'SPA_POD_INIT_Bytes' 297 | const struct spa_pod_bytes p = SPA_POD_INIT_Bytes(len); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_pointer(spa_pod_builder*, uint32_t, const void*)': /usr/include/spa-0.2/spa/pod/builder.h:312:151: warning: ISO C++ forbids compound-literals [-Wpedantic] 312 | #define SPA_POD_INIT_Pointer(type,value) ((struct spa_pod_pointer){ { sizeof(struct spa_pod_pointer_body), SPA_TYPE_Pointer }, { (type), 0, (value) } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:317:42: note: in expansion of macro 'SPA_POD_INIT_Pointer' 317 | const struct spa_pod_pointer p = SPA_POD_INIT_Pointer(type, val); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_fd(spa_pod_builder*, int64_t)': /usr/include/spa-0.2/spa/pod/builder.h:321:90: warning: ISO C++ forbids compound-literals [-Wpedantic] 321 | #define SPA_POD_INIT_Fd(fd) ((struct spa_pod_fd){ { sizeof(int64_t), SPA_TYPE_Fd }, (fd) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:325:37: note: in expansion of macro 'SPA_POD_INIT_Fd' 325 | const struct spa_pod_fd p = SPA_POD_INIT_Fd(fd); | ^~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_rectangle(spa_pod_builder*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/utils/defs.h:100:80: warning: ISO C++ forbids compound-literals [-Wpedantic] 100 | #define SPA_RECTANGLE(width,height) ((struct spa_rectangle){ (width), (height) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:329:121: note: in definition of macro 'SPA_POD_INIT_Rectangle' 329 | #define SPA_POD_INIT_Rectangle(val) ((struct spa_pod_rectangle){ { sizeof(struct spa_rectangle), SPA_TYPE_Rectangle }, (val) }) | ^~~ /usr/include/spa-0.2/spa/pod/builder.h:334:67: note: in expansion of macro 'SPA_RECTANGLE' 334 | const struct spa_pod_rectangle p = SPA_POD_INIT_Rectangle(SPA_RECTANGLE(width, height)); | ^~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:329:126: warning: ISO C++ forbids compound-literals [-Wpedantic] 329 | #define SPA_POD_INIT_Rectangle(val) ((struct spa_pod_rectangle){ { sizeof(struct spa_rectangle), SPA_TYPE_Rectangle }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:334:44: note: in expansion of macro 'SPA_POD_INIT_Rectangle' 334 | const struct spa_pod_rectangle p = SPA_POD_INIT_Rectangle(SPA_RECTANGLE(width, height)); | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_fraction(spa_pod_builder*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/utils/defs.h:118:72: warning: ISO C++ forbids compound-literals [-Wpedantic] 118 | #define SPA_FRACTION(num,denom) ((struct spa_fraction){ (num), (denom) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:338:117: note: in definition of macro 'SPA_POD_INIT_Fraction' 338 | #define SPA_POD_INIT_Fraction(val) ((struct spa_pod_fraction){ { sizeof(struct spa_fraction), SPA_TYPE_Fraction }, (val) }) | ^~~ /usr/include/spa-0.2/spa/pod/builder.h:343:65: note: in expansion of macro 'SPA_FRACTION' 343 | const struct spa_pod_fraction p = SPA_POD_INIT_Fraction(SPA_FRACTION(num, denom)); | ^~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:338:122: warning: ISO C++ forbids compound-literals [-Wpedantic] 338 | #define SPA_POD_INIT_Fraction(val) ((struct spa_pod_fraction){ { sizeof(struct spa_fraction), SPA_TYPE_Fraction }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:343:43: note: in expansion of macro 'SPA_POD_INIT_Fraction' 343 | const struct spa_pod_fraction p = SPA_POD_INIT_Fraction(SPA_FRACTION(num, denom)); | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_push_struct(spa_pod_builder*, spa_pod_frame*)': /usr/include/spa-0.2/spa/pod/builder.h:394:89: warning: ISO C++ forbids compound-literals [-Wpedantic] 394 | #define SPA_POD_INIT_Struct(size) ((struct spa_pod_struct){ { (size), SPA_TYPE_Struct } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:399:41: note: in expansion of macro 'SPA_POD_INIT_Struct' 399 | const struct spa_pod_struct p = SPA_POD_INIT_Struct(0); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_push_object(spa_pod_builder*, spa_pod_frame*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:406:136: warning: ISO C++ forbids compound-literals [-Wpedantic] 406 | #define SPA_POD_INIT_Object(size,type,id,...) ((struct spa_pod_object){ { (size), SPA_TYPE_Object }, { (type), (id) }, ##__VA_ARGS__ }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:413:13: note: in expansion of macro 'SPA_POD_INIT_Object' 413 | SPA_POD_INIT_Object(sizeof(struct spa_pod_object_body), type, id); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_push_sequence(spa_pod_builder*, spa_pod_frame*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:431:80: warning: ISO C++ forbids compound-literals [-Wpedantic] 431 | ((struct spa_pod_sequence){ { (size), SPA_TYPE_Sequence}, {(unit), 0 } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:437:13: note: in expansion of macro 'SPA_POD_INIT_Sequence' 437 | SPA_POD_INIT_Sequence(sizeof(struct spa_pod_sequence_body), unit); | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/raw-utils.h: In function 'int spa_format_video_raw_parse(const spa_pod*, spa_video_info_raw*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/raw-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/raw-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/dsp-utils.h: In function 'int spa_format_video_dsp_parse(const spa_pod*, spa_video_info_dsp*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/dsp-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/dsp-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/h264-utils.h: In function 'int spa_format_video_h264_parse(const spa_pod*, spa_video_info_h264*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/h264-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/h264-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/mjpg-utils.h: In function 'int spa_format_video_mjpg_parse(const spa_pod*, spa_video_info_mjpg*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/mjpg-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/mjpg-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ At global scope: cc1plus: note: unrecognized command-line option '-Wno-c99-extensions' may have been intended to silence earlier diagnostics cc1plus: note: unrecognized command-line option '-Wno-gnu-statement-expression-from-macro-expansion' may have been intended to silence earlier diagnostics [90/113] Linking CXX shared library bin/libKPipeWireRecord.so.6.2.80 [91/113] Creating library symlink bin/libKPipeWireRecord.so.6 bin/libKPipeWireRecord.so [92/113] Building CXX object src/monitors/CMakeFiles/KPipeWireMonitorDeclarative.dir/mediamonitor.cpp.o /opt/kde/src/kpipewire/src/monitors/mediamonitor.cpp:50:1: warning: missing initializer for member 'pw_proxy_events::bound' [-Wmissing-field-initializers] 50 | }; | ^ /opt/kde/src/kpipewire/src/monitors/mediamonitor.cpp:50:1: warning: missing initializer for member 'pw_proxy_events::removed' [-Wmissing-field-initializers] /opt/kde/src/kpipewire/src/monitors/mediamonitor.cpp:50:1: warning: missing initializer for member 'pw_proxy_events::done' [-Wmissing-field-initializers] /opt/kde/src/kpipewire/src/monitors/mediamonitor.cpp:50:1: warning: missing initializer for member 'pw_proxy_events::error' [-Wmissing-field-initializers] /opt/kde/src/kpipewire/src/monitors/mediamonitor.cpp:50:1: warning: missing initializer for member 'pw_proxy_events::bound_props' [-Wmissing-field-initializers] /opt/kde/src/kpipewire/src/monitors/mediamonitor.cpp:55:1: warning: missing initializer for member 'pw_node_events::param' [-Wmissing-field-initializers] 55 | }; | ^ cc1plus: note: unrecognized command-line option '-Wno-c99-extensions' may have been intended to silence earlier diagnostics cc1plus: note: unrecognized command-line option '-Wno-gnu-statement-expression-from-macro-expansion' may have been intended to silence earlier diagnostics [93/113] Automatic MOC for target KPipeWireRecordDeclarative [94/113] Running AUTOMOC file extraction for target KPipeWireRecordDeclarative [95/113] Running rcc for resource qmake_org_kde_pipewire_record Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8. Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead. If this causes problems, reconfigure your locale. See the locale(1) manual for more information. [96/113] Running moc --collect-json for target KPipeWireRecordDeclarative [97/113] Automatic QML type registration for target KPipeWireRecordDeclarative Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8. Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead. If this causes problems, reconfigure your locale. See the locale(1) manual for more information. [98/113] Building CXX object src/CMakeFiles/KPipeWireRecordDeclarative.dir/KPipeWireRecordDeclarative_autogen/mocs_compilation.cpp.o [99/113] Building CXX object src/CMakeFiles/KPipeWireRecordDeclarative.dir/.qt/rcc/qrc_qmake_org_kde_pipewire_record.cpp.o [100/113] Linking CXX shared module bin/org/kde/pipewire/monitor/libKPipeWireMonitorDeclarative.so [101/113] Automatic MOC for target kpipewireheadlesstest [102/113] Generating xdp_dbus_remotedesktop_interface.cpp, xdp_dbus_remotedesktop_interface.h Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8. Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead. If this causes problems, reconfigure your locale. See the locale(1) manual for more information. [103/113] Generating moc_xdp_dbus_remotedesktop_interface.cpp [104/113] Building CXX object tests/CMakeFiles/kpipewireheadlesstest.dir/kpipewireheadlesstest_autogen/mocs_compilation.cpp.o [105/113] Building CXX object tests/CMakeFiles/recordme.dir/PlasmaRecordMe.cpp.o [106/113] Building CXX object tests/CMakeFiles/kpipewireheadlesstest.dir/xdp_dbus_screencast_interface.cpp.o [107/113] Linking CXX executable bin/recordme [108/113] Building CXX object src/CMakeFiles/KPipeWireRecordDeclarative.dir/kpipewirerecorddeclarative_qmltyperegistrations.cpp.o [109/113] Building CXX object src/CMakeFiles/KPipeWireRecordDeclarative.dir/kpipewirerecorddeclarativeplugin.cpp.o [110/113] Linking CXX shared module bin/org/kde/pipewire/record/libKPipeWireRecordDeclarative.so [111/113] Building CXX object tests/CMakeFiles/kpipewireheadlesstest.dir/xdp_dbus_remotedesktop_interface.cpp.o [112/113] Building CXX object tests/CMakeFiles/kpipewireheadlesstest.dir/HeadlessTest.cpp.o In file included from /usr/include/spa-0.2/spa/support/plugin.h:13, from /usr/include/pipewire-0.3/pipewire/pipewire.h:12, from /opt/kde/src/kpipewire/src/pipewiresourcestream.h:20, from /opt/kde/src/kpipewire/src/dmabufhandler.h:11, from /opt/kde/build/kpipewire/src/DmaBufHandler:1, from /opt/kde/src/kpipewire/tests/HeadlessTest.cpp:16: /usr/include/spa-0.2/spa/utils/dict.h: In function 'const spa_dict_item* spa_dict_lookup_item(const spa_dict*, const char*)': /usr/include/spa-0.2/spa/utils/dict.h:31:80: warning: ISO C++ forbids compound-literals [-Wpedantic] 31 | #define SPA_DICT_ITEM_INIT(key,value) ((struct spa_dict_item) { (key), (value) }) | ^ /usr/include/spa-0.2/spa/utils/dict.h:70:42: note: in expansion of macro 'SPA_DICT_ITEM_INIT' 70 | struct spa_dict_item k = SPA_DICT_ITEM_INIT(key, NULL); | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/spa-0.2/spa/support/plugin.h:12: /usr/include/pipewire-0.3/pipewire/array.h: In function 'int pw_array_ensure_size(pw_array*, size_t)': /usr/include/spa-0.2/spa/utils/defs.h:271:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 271 | ({ \ | ^ /usr/include/pipewire-0.3/pipewire/array.h:115:25: note: in expansion of macro 'SPA_ROUND_UP' 115 | alloc = SPA_ROUND_UP(need, arr->extend); | ^~~~~~~~~~~~ In file included from /usr/include/spa-0.2/spa/utils/hook.h:13, from /usr/include/pipewire-0.3/pipewire/proxy.h:12, from /usr/include/pipewire-0.3/pipewire/client.h:15, from /usr/include/pipewire-0.3/pipewire/pipewire.h:15: /usr/include/spa-0.2/spa/utils/list.h: In function 'void spa_list_init(spa_list*)': /usr/include/spa-0.2/spa/utils/list.h:27:64: warning: ISO C++ forbids compound-literals [-Wpedantic] 27 | #define SPA_LIST_INIT(list) ((struct spa_list){ (list), (list) }) | ^ /usr/include/spa-0.2/spa/utils/list.h:31:17: note: in expansion of macro 'SPA_LIST_INIT' 31 | *list = SPA_LIST_INIT(list); | ^~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/hook.h: In function 'void spa_hook_list_append(spa_hook_list*, spa_hook*, const void*, void*)': /usr/include/spa-0.2/spa/utils/hook.h:125:86: warning: ISO C++ forbids compound-literals [-Wpedantic] 125 | #define SPA_CALLBACKS_INIT(_funcs,_data) ((struct spa_callbacks){ (_funcs), (_data), }) | ^ /usr/include/spa-0.2/spa/utils/hook.h:367:20: note: in expansion of macro 'SPA_CALLBACKS_INIT' 367 | hook->cb = SPA_CALLBACKS_INIT(funcs, data); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/hook.h: In function 'void spa_hook_list_prepend(spa_hook_list*, spa_hook*, const void*, void*)': /usr/include/spa-0.2/spa/utils/hook.h:125:86: warning: ISO C++ forbids compound-literals [-Wpedantic] 125 | #define SPA_CALLBACKS_INIT(_funcs,_data) ((struct spa_callbacks){ (_funcs), (_data), }) | ^ /usr/include/spa-0.2/spa/utils/hook.h:377:20: note: in expansion of macro 'SPA_CALLBACKS_INIT' 377 | hook->cb = SPA_CALLBACKS_INIT(funcs, data); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/string.h: In function 'int spa_strbuf_append(spa_strbuf*, const char*, ...)': /usr/include/spa-0.2/spa/utils/defs.h:147:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 147 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/string.h:384:29: note: in expansion of macro 'SPA_MIN' 384 | buf->pos += SPA_MIN(remain, (size_t)written); | ^~~~~~~ In file included from /usr/include/pipewire-0.3/pipewire/context.h:48, from /usr/include/pipewire-0.3/pipewire/protocol.h:26, from /usr/include/pipewire-0.3/pipewire/proxy.h:90: /usr/include/pipewire-0.3/pipewire/core.h: In function 'int pw_core_errorv(pw_core*, uint32_t, int, int, const char*, __va_list_tag*)': /usr/include/pipewire-0.3/pipewire/core.h:338:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 338 | ({ \ | ^ /usr/include/pipewire-0.3/pipewire/core.h:350:41: note: in expansion of macro 'pw_core_method' 350 | #define pw_core_error(c,...) pw_core_method(c,error,0,__VA_ARGS__) | ^~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:361:16: note: in expansion of macro 'pw_core_error' 361 | return pw_core_error(core, id, seq, res, buffer); | ^~~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:340:9: note: in expansion of macro 'spa_interface_call_res' 340 | spa_interface_call_res((struct spa_interface*)o, \ | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:350:41: note: in expansion of macro 'pw_core_method' 350 | #define pw_core_error(c,...) pw_core_method(c,error,0,__VA_ARGS__) | ^~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:361:16: note: in expansion of macro 'pw_core_error' 361 | return pw_core_error(core, id, seq, res, buffer); | ^~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h: In function 'pw_registry* pw_core_get_registry(pw_core*, uint32_t, size_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:381:9: note: in expansion of macro 'spa_interface_call_res' 381 | spa_interface_call_res((struct spa_interface*)core, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h: In function 'void* pw_core_create_object(pw_core*, const char*, const char*, uint32_t, const spa_dict*, size_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:396:9: note: in expansion of macro 'spa_interface_call_res' 396 | spa_interface_call_res((struct spa_interface*)core, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h: In function 'void* pw_registry_bind(pw_registry*, uint32_t, const char*, uint32_t, size_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/pipewire-0.3/pipewire/core.h:537:9: note: in expansion of macro 'spa_interface_call_res' 537 | spa_interface_call_res((struct spa_interface*)registry, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/log.h: In function 'void spa_log_topic_init(spa_log*, spa_log_topic*)': /usr/include/spa-0.2/spa/utils/hook.h:157:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 157 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:230:9: note: in expansion of macro 'spa_callbacks_call' 230 | spa_callbacks_call(&(iface)->cb,method_type,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/log.h:221:9: note: in expansion of macro 'spa_interface_call' 221 | spa_interface_call(&log->iface, struct spa_log_methods, topic_init, 1, topic); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'spa_thread* spa_thread_utils_create(spa_thread_utils*, const spa_dict*, void* (*)(void*), void*)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:65:9: note: in expansion of macro 'spa_interface_call_res' 65 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_join(spa_thread_utils*, spa_thread*, void**)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:77:9: note: in expansion of macro 'spa_interface_call_res' 77 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_get_rt_range(spa_thread_utils*, const spa_dict*, int*, int*)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:89:9: note: in expansion of macro 'spa_interface_call_res' 89 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_acquire_rt(spa_thread_utils*, spa_thread*, int)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:101:9: note: in expansion of macro 'spa_interface_call_res' 101 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h: In function 'int spa_thread_utils_drop_rt(spa_thread_utils*, spa_thread*)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/utils/hook.h:243:9: note: in expansion of macro 'spa_callbacks_call_res' 243 | spa_callbacks_call_res(&(iface)->cb,method_type,res,method,vers,##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/support/thread.h:113:9: note: in expansion of macro 'spa_interface_call_res' 113 | spa_interface_call_res(&o->iface, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/iter.h: In function 'uint32_t spa_pod_copy_array(const spa_pod*, uint32_t, void*, uint32_t)': /usr/include/spa-0.2/spa/utils/defs.h:147:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 147 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/iter.h:337:20: note: in expansion of macro 'SPA_MIN' 337 | n_values = SPA_MIN(n_values, max_values); | ^~~~~~~ /usr/include/spa-0.2/spa/pod/iter.h: In function 'spa_pod* spa_pod_get_values(const spa_pod*, uint32_t*, uint32_t*)': /usr/include/spa-0.2/spa/utils/defs.h:147:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 147 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/iter.h:353:35: note: in expansion of macro 'SPA_MIN' 353 | *n_vals = SPA_MIN(1u, SPA_POD_CHOICE_N_VALUES(pod)); | ^~~~~~~ In file included from /usr/include/spa-0.2/spa/param/format-utils.h:18, from /opt/kde/src/kpipewire/src/pipewiresourcestream.h:21: /usr/include/spa-0.2/spa/pod/parser.h: In function 'void spa_pod_parser_init(spa_pod_parser*, const void*, uint32_t)': /usr/include/spa-0.2/spa/pod/parser.h:36:94: warning: ISO C++ forbids compound-literals [-Wpedantic] 36 | #define SPA_POD_PARSER_INIT(buffer,size) ((struct spa_pod_parser){ (buffer), (size), 0, {0} }) | ^ /usr/include/spa-0.2/spa/pod/parser.h:41:19: note: in expansion of macro 'SPA_POD_PARSER_INIT' 41 | *parser = SPA_POD_PARSER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:36:94: warning: missing initializer for member 'spa_pod_parser_state::flags' [-Wmissing-field-initializers] 36 | #define SPA_POD_PARSER_INIT(buffer,size) ((struct spa_pod_parser){ (buffer), (size), 0, {0} }) | ^ /usr/include/spa-0.2/spa/pod/parser.h:41:19: note: in expansion of macro 'SPA_POD_PARSER_INIT' 41 | *parser = SPA_POD_PARSER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:36:94: warning: missing initializer for member 'spa_pod_parser_state::frame' [-Wmissing-field-initializers] 36 | #define SPA_POD_PARSER_INIT(buffer,size) ((struct spa_pod_parser){ (buffer), (size), 0, {0} }) | ^ /usr/include/spa-0.2/spa/pod/parser.h:41:19: note: in expansion of macro 'SPA_POD_PARSER_INIT' 41 | *parser = SPA_POD_PARSER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/format-utils.h: In function 'int spa_format_parse(const spa_pod*, uint32_t*, uint32_t*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/format-utils.h:24:16: note: in expansion of macro 'spa_pod_parse_object' 24 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/format-utils.h:24:16: note: in expansion of macro 'spa_pod_parse_object' 24 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'void spa_pod_builder_set_callbacks(spa_pod_builder*, const spa_pod_builder_callbacks*, void*)': /usr/include/spa-0.2/spa/utils/hook.h:125:86: warning: ISO C++ forbids compound-literals [-Wpedantic] 125 | #define SPA_CALLBACKS_INIT(_funcs,_data) ((struct spa_callbacks){ (_funcs), (_data), }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:64:30: note: in expansion of macro 'SPA_CALLBACKS_INIT' 64 | builder->callbacks = SPA_CALLBACKS_INIT(callbacks, data); | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/spa-0.2/spa/param/video/raw-utils.h:18, from /usr/include/spa-0.2/spa/param/video/format-utils.h:14, from /opt/kde/src/kpipewire/src/pipewiresourcestream.h:23: /usr/include/spa-0.2/spa/pod/builder.h: In function 'void spa_pod_builder_init(spa_pod_builder*, void*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: ISO C++ forbids compound-literals [-Wpedantic] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: missing initializer for member 'spa_pod_builder_state::flags' [-Wmissing-field-initializers] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: missing initializer for member 'spa_pod_builder_state::frame' [-Wmissing-field-initializers] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:52:101: warning: missing initializer for member 'spa_callbacks::data' [-Wmissing-field-initializers] 52 | #define SPA_POD_BUILDER_INIT(buffer,size) ((struct spa_pod_builder){ (buffer), (size), 0, {0}, {0} }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:79:20: note: in expansion of macro 'SPA_POD_BUILDER_INIT' 79 | *builder = SPA_POD_BUILDER_INIT(data, size); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_raw(spa_pod_builder*, const void*, uint32_t)': /usr/include/spa-0.2/spa/utils/hook.h:199:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 199 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/builder.h:127:25: note: in expansion of macro 'spa_callbacks_call_res' 127 | spa_callbacks_call_res(&builder->callbacks, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_primitive(spa_pod_builder*, const spa_pod*)': /usr/include/spa-0.2/spa/utils/defs.h:83:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 83 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/builder.h:188:17: note: in expansion of macro 'SPA_FLAG_CLEAR' 188 | SPA_FLAG_CLEAR(builder->state.flags, SPA_POD_BUILDER_FLAG_FIRST); | ^~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_none(spa_pod_builder*)': /usr/include/spa-0.2/spa/pod/builder.h:197:68: warning: ISO C++ forbids compound-literals [-Wpedantic] 197 | #define SPA_POD_INIT(size,type) ((struct spa_pod) { (size), (type) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:199:29: note: in expansion of macro 'SPA_POD_INIT' 199 | #define SPA_POD_INIT_None() SPA_POD_INIT(0, SPA_TYPE_None) | ^~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:203:34: note: in expansion of macro 'SPA_POD_INIT_None' 203 | const struct spa_pod p = SPA_POD_INIT_None(); | ^~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_child(spa_pod_builder*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:197:68: warning: ISO C++ forbids compound-literals [-Wpedantic] 197 | #define SPA_POD_INIT(size,type) ((struct spa_pod) { (size), (type) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:209:34: note: in expansion of macro 'SPA_POD_INIT' 209 | const struct spa_pod p = SPA_POD_INIT(size,type); | ^~~~~~~~~~~~ /usr/include/spa-0.2/spa/utils/defs.h:83:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 83 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/builder.h:210:9: note: in expansion of macro 'SPA_FLAG_CLEAR' 210 | SPA_FLAG_CLEAR(builder->state.flags, SPA_POD_BUILDER_FLAG_FIRST); | ^~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_bool(spa_pod_builder*, bool)': /usr/include/spa-0.2/spa/pod/builder.h:214:110: warning: ISO C++ forbids compound-literals [-Wpedantic] 214 | #define SPA_POD_INIT_Bool(val) ((struct spa_pod_bool){ { sizeof(uint32_t), SPA_TYPE_Bool }, (val) ? 1 : 0, 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:218:39: note: in expansion of macro 'SPA_POD_INIT_Bool' 218 | const struct spa_pod_bool p = SPA_POD_INIT_Bool(val); | ^~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_id(spa_pod_builder*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:222:96: warning: ISO C++ forbids compound-literals [-Wpedantic] 222 | #define SPA_POD_INIT_Id(val) ((struct spa_pod_id){ { sizeof(uint32_t), SPA_TYPE_Id }, (val), 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:226:37: note: in expansion of macro 'SPA_POD_INIT_Id' 226 | const struct spa_pod_id p = SPA_POD_INIT_Id(val); | ^~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_int(spa_pod_builder*, int32_t)': /usr/include/spa-0.2/spa/pod/builder.h:230:98: warning: ISO C++ forbids compound-literals [-Wpedantic] 230 | #define SPA_POD_INIT_Int(val) ((struct spa_pod_int){ { sizeof(int32_t), SPA_TYPE_Int }, (val), 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:234:38: note: in expansion of macro 'SPA_POD_INIT_Int' 234 | const struct spa_pod_int p = SPA_POD_INIT_Int(val); | ^~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_long(spa_pod_builder*, int64_t)': /usr/include/spa-0.2/spa/pod/builder.h:238:98: warning: ISO C++ forbids compound-literals [-Wpedantic] 238 | #define SPA_POD_INIT_Long(val) ((struct spa_pod_long){ { sizeof(int64_t), SPA_TYPE_Long }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:242:39: note: in expansion of macro 'SPA_POD_INIT_Long' 242 | const struct spa_pod_long p = SPA_POD_INIT_Long(val); | ^~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_float(spa_pod_builder*, float)': /usr/include/spa-0.2/spa/pod/builder.h:246:102: warning: ISO C++ forbids compound-literals [-Wpedantic] 246 | #define SPA_POD_INIT_Float(val) ((struct spa_pod_float){ { sizeof(float), SPA_TYPE_Float }, (val), 0 }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:250:40: note: in expansion of macro 'SPA_POD_INIT_Float' 250 | const struct spa_pod_float p = SPA_POD_INIT_Float(val); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_double(spa_pod_builder*, double)': /usr/include/spa-0.2/spa/pod/builder.h:254:103: warning: ISO C++ forbids compound-literals [-Wpedantic] 254 | #define SPA_POD_INIT_Double(val) ((struct spa_pod_double){ { sizeof(double), SPA_TYPE_Double }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:258:41: note: in expansion of macro 'SPA_POD_INIT_Double' 258 | const struct spa_pod_double p = SPA_POD_INIT_Double(val); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_string_len(spa_pod_builder*, const char*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:262:87: warning: ISO C++ forbids compound-literals [-Wpedantic] 262 | #define SPA_POD_INIT_String(len) ((struct spa_pod_string){ { (len), SPA_TYPE_String } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:279:41: note: in expansion of macro 'SPA_POD_INIT_String' 279 | const struct spa_pod_string p = SPA_POD_INIT_String(len+1); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_bytes(spa_pod_builder*, const void*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:292:84: warning: ISO C++ forbids compound-literals [-Wpedantic] 292 | #define SPA_POD_INIT_Bytes(len) ((struct spa_pod_bytes){ { (len), SPA_TYPE_Bytes } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:297:40: note: in expansion of macro 'SPA_POD_INIT_Bytes' 297 | const struct spa_pod_bytes p = SPA_POD_INIT_Bytes(len); | ^~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_pointer(spa_pod_builder*, uint32_t, const void*)': /usr/include/spa-0.2/spa/pod/builder.h:312:151: warning: ISO C++ forbids compound-literals [-Wpedantic] 312 | #define SPA_POD_INIT_Pointer(type,value) ((struct spa_pod_pointer){ { sizeof(struct spa_pod_pointer_body), SPA_TYPE_Pointer }, { (type), 0, (value) } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:317:42: note: in expansion of macro 'SPA_POD_INIT_Pointer' 317 | const struct spa_pod_pointer p = SPA_POD_INIT_Pointer(type, val); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_fd(spa_pod_builder*, int64_t)': /usr/include/spa-0.2/spa/pod/builder.h:321:90: warning: ISO C++ forbids compound-literals [-Wpedantic] 321 | #define SPA_POD_INIT_Fd(fd) ((struct spa_pod_fd){ { sizeof(int64_t), SPA_TYPE_Fd }, (fd) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:325:37: note: in expansion of macro 'SPA_POD_INIT_Fd' 325 | const struct spa_pod_fd p = SPA_POD_INIT_Fd(fd); | ^~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_rectangle(spa_pod_builder*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/utils/defs.h:100:80: warning: ISO C++ forbids compound-literals [-Wpedantic] 100 | #define SPA_RECTANGLE(width,height) ((struct spa_rectangle){ (width), (height) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:329:121: note: in definition of macro 'SPA_POD_INIT_Rectangle' 329 | #define SPA_POD_INIT_Rectangle(val) ((struct spa_pod_rectangle){ { sizeof(struct spa_rectangle), SPA_TYPE_Rectangle }, (val) }) | ^~~ /usr/include/spa-0.2/spa/pod/builder.h:334:67: note: in expansion of macro 'SPA_RECTANGLE' 334 | const struct spa_pod_rectangle p = SPA_POD_INIT_Rectangle(SPA_RECTANGLE(width, height)); | ^~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:329:126: warning: ISO C++ forbids compound-literals [-Wpedantic] 329 | #define SPA_POD_INIT_Rectangle(val) ((struct spa_pod_rectangle){ { sizeof(struct spa_rectangle), SPA_TYPE_Rectangle }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:334:44: note: in expansion of macro 'SPA_POD_INIT_Rectangle' 334 | const struct spa_pod_rectangle p = SPA_POD_INIT_Rectangle(SPA_RECTANGLE(width, height)); | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_fraction(spa_pod_builder*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/utils/defs.h:118:72: warning: ISO C++ forbids compound-literals [-Wpedantic] 118 | #define SPA_FRACTION(num,denom) ((struct spa_fraction){ (num), (denom) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:338:117: note: in definition of macro 'SPA_POD_INIT_Fraction' 338 | #define SPA_POD_INIT_Fraction(val) ((struct spa_pod_fraction){ { sizeof(struct spa_fraction), SPA_TYPE_Fraction }, (val) }) | ^~~ /usr/include/spa-0.2/spa/pod/builder.h:343:65: note: in expansion of macro 'SPA_FRACTION' 343 | const struct spa_pod_fraction p = SPA_POD_INIT_Fraction(SPA_FRACTION(num, denom)); | ^~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h:338:122: warning: ISO C++ forbids compound-literals [-Wpedantic] 338 | #define SPA_POD_INIT_Fraction(val) ((struct spa_pod_fraction){ { sizeof(struct spa_fraction), SPA_TYPE_Fraction }, (val) }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:343:43: note: in expansion of macro 'SPA_POD_INIT_Fraction' 343 | const struct spa_pod_fraction p = SPA_POD_INIT_Fraction(SPA_FRACTION(num, denom)); | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_push_struct(spa_pod_builder*, spa_pod_frame*)': /usr/include/spa-0.2/spa/pod/builder.h:394:89: warning: ISO C++ forbids compound-literals [-Wpedantic] 394 | #define SPA_POD_INIT_Struct(size) ((struct spa_pod_struct){ { (size), SPA_TYPE_Struct } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:399:41: note: in expansion of macro 'SPA_POD_INIT_Struct' 399 | const struct spa_pod_struct p = SPA_POD_INIT_Struct(0); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_push_object(spa_pod_builder*, spa_pod_frame*, uint32_t, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:406:136: warning: ISO C++ forbids compound-literals [-Wpedantic] 406 | #define SPA_POD_INIT_Object(size,type,id,...) ((struct spa_pod_object){ { (size), SPA_TYPE_Object }, { (type), (id) }, ##__VA_ARGS__ }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:413:13: note: in expansion of macro 'SPA_POD_INIT_Object' 413 | SPA_POD_INIT_Object(sizeof(struct spa_pod_object_body), type, id); | ^~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/builder.h: In function 'int spa_pod_builder_push_sequence(spa_pod_builder*, spa_pod_frame*, uint32_t)': /usr/include/spa-0.2/spa/pod/builder.h:431:80: warning: ISO C++ forbids compound-literals [-Wpedantic] 431 | ((struct spa_pod_sequence){ { (size), SPA_TYPE_Sequence}, {(unit), 0 } }) | ^ /usr/include/spa-0.2/spa/pod/builder.h:437:13: note: in expansion of macro 'SPA_POD_INIT_Sequence' 437 | SPA_POD_INIT_Sequence(sizeof(struct spa_pod_sequence_body), unit); | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/raw-utils.h: In function 'int spa_format_video_raw_parse(const spa_pod*, spa_video_info_raw*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/raw-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/raw-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/dsp-utils.h: In function 'int spa_format_video_dsp_parse(const spa_pod*, spa_video_info_dsp*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/dsp-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/dsp-utils.h:33:16: note: in expansion of macro 'spa_pod_parse_object' 33 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/h264-utils.h: In function 'int spa_format_video_h264_parse(const spa_pod*, spa_video_info_h264*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/h264-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/h264-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/mjpg-utils.h: In function 'int spa_format_video_mjpg_parse(const spa_pod*, spa_video_info_mjpg*)': /usr/include/spa-0.2/spa/pod/parser.h:553:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 553 | ({ \ | ^ /usr/include/spa-0.2/spa/param/video/mjpg-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/pod/parser.h:531:1: warning: ISO C++ forbids braced-groups within expressions [-Wpedantic] 531 | ({ \ | ^ /usr/include/spa-0.2/spa/pod/parser.h:556:9: note: in expansion of macro 'spa_pod_parser_get_object' 556 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/spa-0.2/spa/param/video/mjpg-utils.h:25:16: note: in expansion of macro 'spa_pod_parse_object' 25 | return spa_pod_parse_object(format, | ^~~~~~~~~~~~~~~~~~~~ At global scope: cc1plus: note: unrecognized command-line option '-Wno-c99-extensions' may have been intended to silence earlier diagnostics cc1plus: note: unrecognized command-line option '-Wno-gnu-statement-expression-from-macro-expansion' may have been intended to silence earlier diagnostics [113/113] Linking CXX executable bin/kpipewireheadlesstest