damianatorrpm / wayfire-plugin_dbus_interface

DBus Plugin for wayfire
MIT License
11 stars 6 forks source link

Fails to build with Clang #47

Open jbeich opened 2 years ago

jbeich commented 2 years ago
$ export CXX=clang++
$ meson setup _build
$ meson compile -C _build
[...]
In file included from ../dbus_interface.cpp:43:
../dbus_interface_backend.cpp:1116:34: error: 'core' cannot be captured because it does not have automatic storage duration
            idle_call->run_once([core, idle_call] ()
                                 ^
../dbus_interface_backend.cpp:51:24: note: 'core' declared here
wf::compositor_core_t& core = wf::get_core();
                       ^
chm46e commented 2 years ago

Did you find a fix? I'm running into the same issue..

jbeich commented 2 years ago

See downstream workaround