Skip to content

ksmserver: Fix build error

Vlad Zahorodnii requested to merge work/zzag/fix-build-clang into master

Build fails for me with the following error message

In file included from /data/projects/build/plasma-workspace/ksmserver/ksmserver_autogen/mocs_compilation.cpp:2:
In file included from /data/projects/build/plasma-workspace/ksmserver/ksmserver_autogen/EWIEGA46WW/moc_server.cpp:10:
In file included from /data/projects/build/plasma-workspace/ksmserver/ksmserver_autogen/EWIEGA46WW/../../../../../src/plasma-workspace/ksmserver/server.h:23:
In file included from /data/projects/usr/include/KF5/KWindowSystem/fixx11h.h:10:
In file included from /data/projects/src/qt5/qtbase/include/QtCore/QtGlobal:1:
In file included from /data/projects/src/qt5/qtbase/include/QtCore/qglobal.h:1:
In file included from /data/projects/src/qt5/qtbase/include/QtCore/../../src/corelib/global/qglobal.h:142:
In file included from /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/12.2.0/../../../../include/c++/12.2.0/algorithm:61:
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/12.2.0/../../../../include/c++/12.2.0/bits/stl_algo.h:5877:3: error: too many arguments provided to function-like macro invocation
                is_convertible<__samp_cat, random_access_iterator_tag>>::value,
                ^
/usr/include/X11/ICE/ICEmsg.h:38:9: note: macro 'static_assert' defined here
#define static_assert(cond, msg) /* skip for non-C11 compilers */

Merge request reports