Build error on Linux with clang-15
jcelerier opened this issue · comments
Wanted to try directory iteration after seeing your r/cpp post, but...
/home/jcelerier/ossia/score/3rdparty/quickcpplib/include/quickcpplib/ringbuffer_log.hpp:222: erreur : assigning to 'void *' from 'const void *' discards qualifiers
In file included from /home/jcelerier/ossia/score/src/lib/score/tools/RecursiveWatch.cpp:131:
In file included from /home/jcelerier/ossia/score/3rdparty/llfio/include/llfio.hpp:1:
In file included from /home/jcelerier/ossia/score/3rdparty/llfio/include/llfio/llfio.hpp:18:
In file included from /home/jcelerier/ossia/score/3rdparty/llfio/include/llfio/v2.0/llfio.hpp:58:
In file included from /home/jcelerier/ossia/score/3rdparty/llfio/include/llfio/v2.0/config.hpp:216:
/home/jcelerier/ossia/score/3rdparty/quickcpplib/include/quickcpplib/ringbuffer_log.hpp:222:30: error: assigning to 'void *' from 'const void *' discards qualifiers
backtrace[len] = i;
^
It seems that just marking backtrace as const void *backtrace[16];
is enough (with a cast to char **symbols = backtrace_symbols(static_cast<void* const*>(backtrace), len);
afterwards. I can make a PR if you want.
568e181 should fix this, can you verify?
Yep, it does :)