You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
Currently getting this compile error on 0.2.3 and 0.2.4-dev
[ 54%] Building CXX object src/radiotray-ng/extras/media_keys/CMakeFiles/media_keys.dir/linux/media_keys.cpp.o
In file included from /usr/include/sigc++-2.0/sigc++/sigc++.h:104,
from /usr/include/glibmm-2.4/glibmm/thread.h:49,
from /usr/include/glibmm-2.4/glibmm.h:88,
from /usr/include/giomm-2.4/giomm.h:22,
from /home/build/YPKG/root/radiotray-ng/build/radiotray-ng.git/src/radiotray-ng/extras/media_keys/linux/media_keys.cpp:23:
/usr/include/sigc++-2.0/sigc++/signal.h: In static member function ‘static sigc::internal::signal_emit0<void, sigc::nil>::result_type sigc::internal::signal_emit0<void, sigc::nil>::emit(sigc::internal::signal_impl*)’:
/usr/include/sigc++-2.0/sigc++/signal.h:794:56: error: cast between incompatible function types from ‘sigc::internal::hook’ {aka ‘void* (*)(void*)’} to ‘sigc::internal::signal_emit0<void, sigc::nil>::call_type’ {aka ‘void (*)(sigc::internal::slot_rep*)’} [-Werror=cast-function-type]
(reinterpret_cast<call_type>(slot.rep_->call_))(slot.rep_);
^
/usr/include/sigc++-2.0/sigc++/signal.h: In static member function ‘static sigc::internal::signal_emit0<void, sigc::nil>::result_type sigc::internal::signal_emit0<void, sigc::nil>::emit_reverse(sigc::internal::signal_impl*)’:
/usr/include/sigc++-2.0/sigc++/signal.h:821:55: error: cast between incompatible function types from ‘sigc::internal::hook’ {aka ‘void* (*)(void*)’} to ‘sigc::internal::signal_emit0<void, sigc::nil>::call_type’ {aka ‘void (*)(sigc::internal::slot_rep*)’} [-Werror=cast-function-type]
(reinterpret_cast<call_type>(it->rep_->call_))(it->rep_);
^
cc1plus: all warnings being treated as errors
make[2]: *** [src/radiotray-ng/extras/media_keys/CMakeFiles/media_keys.dir/build.make:63: src/radiotray-ng/extras/media_keys/CMakeFiles/media_keys.dir/linux/media_keys.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:540: src/radiotray-ng/extras/media_keys/CMakeFiles/media_keys.dir/all] Error 2
make: *** [Makefile:152: all] Error 2
Removing -Werror in CMakeLists.txt will fix the compile error, but of course that isn't a proper fix.
You're right similar to d4fb8dd marking radiotray-ng/CMakeLists.txt, src/radiotray-ng/extras/media_keys/CMakeLists.txt and src/radiotray-ng/extras/rtng_dbus/CMakeLists.txt as SYSTEM PRIVATE did the trick.
Currently getting this compile error on 0.2.3 and 0.2.4-dev
Removing
-Werrorin CMakeLists.txt will fix the compile error, but of course that isn't a proper fix.Thanks in advance!
gcc version: 8.2.0
glibmm : 2.56.0
libsigc++ : 2.10.0
The text was updated successfully, but these errors were encountered: