Workaround for gcc-toolset-12 on almalinux8 on a release/optimized build: [build CXX] sc/source/core/data/column2.cxx In file included from /home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_gcc_release_64/workdir/UnpackedTarball/mdds/include/mdds/flat_segment_tree.hpp:37, from /home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_gcc_release_64/sc/inc/columnspanset.hxx:16, from /home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_gcc_release_64/sc/inc/column.hxx:25, from /home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_gcc_release_64/sc/source/core/data/column2.cxx:20: In function ‘void mdds::__st::intrusive_ptr_release(node*) [with T = mdds::flat_segment_tree]’, inlined from ‘boost::intrusive_ptr::~intrusive_ptr() [with T = mdds::__st::node >]’ at /home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_gcc_release_64/workdir/UnpackedTarball/boost/boost/smart_ptr/intrusive_ptr.hpp:100:44, inlined from ‘std::pair::const_iterator, bool> mdds::flat_segment_tree::insert_segment_impl(key_type, key_type, value_type, bool) [with Key = int; Value = bool]’ at /home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_gcc_release_64/workdir/UnpackedTarball/mdds/include/mdds/flat_segment_tree_def.inl:225:1: /home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_gcc_release_64/workdir/UnpackedTarball/mdds/include/mdds/node.hpp:247:10: error: pointer used after ‘void operator delete(void*, std::size_t)’ [-Werror=use-after-free] 247 | --p->refcount; | ~~~^~~~~~~~ In function ‘void mdds::__st::intrusive_ptr_release(node*) [with T = mdds::flat_segment_tree]’, inlined from ‘void mdds::__st::intrusive_ptr_release(node*) [with T = mdds::flat_segment_tree]’ at /home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_gcc_release_64/workdir/UnpackedTarball/mdds/include/mdds/node.hpp:245:13, inlined from ‘boost::intrusive_ptr::~intrusive_ptr() [with T = mdds::__st::node >]’ at /home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_gcc_release_64/workdir/UnpackedTarball/boost/boost/smart_ptr/intrusive_ptr.hpp:100:44, inlined from ‘std::pair::const_iterator, bool> mdds::flat_segment_tree::insert_segment_impl(key_type, key_type, value_type, bool) [with Key = int; Value = bool]’ at /home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_gcc_release_64/workdir/UnpackedTarball/mdds/include/mdds/flat_segment_tree_def.inl:224:93: /home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_gcc_release_64/workdir/UnpackedTarball/mdds/include/mdds/node.hpp:249:9: note: call to ‘void operator delete(void*, std::size_t)’ here 249 | delete p; | ^~~~~~~~ cc1plus: all warnings being treated as errors diff -ur mdds.org/include/mdds/node.hpp mdds/include/mdds/node.hpp --- mdds.org/include/mdds/node.hpp 2023-07-24 18:27:14.427139325 +0000 +++ mdds/include/mdds/node.hpp 2023-07-24 18:26:54.554461294 +0000 @@ -244,9 +244,15 @@ template inline void intrusive_ptr_release(node* p) { - --p->refcount; - if (!p->refcount) +#if defined __GNUC__ && __GNUC__ == 12 && __GNUC_MINOR__ <= 3 && !defined __clang__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wuse-after-free" +#endif + if(--p->refcount == 0) delete p; +#if defined __GNUC__ && __GNUC__ == 12 && __GNUC_MINOR__ <= 3 && !defined __clang__ +#pragma GCC diagnostic pop +#endif } template istro/collabora/cp-4.3'>distro/collabora/cp-4.3 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2015-03-23move cairo helpers to vcl and make per-plugCaolán McNamara
2015-03-03render text with cairo under gtk3, not headless solutionCaolán McNamara
2015-03-02Remove references to unused GLUStephan Bergmann
2014-12-02vcl: Use the current OpenGL context for VirtualDevice and Bitmap if possibleLouis-Francis Ratté-Boulianne
2014-11-15vcl: Replace GetPixmapFromScreen by FillPixmapFromScreenLouis-Francis Ratté-Boulianne
2014-11-10implementation for OpenGL text rendering in the unx backendMarkus Mohrhard
2014-11-10vcl: Initial work to have native widgets rendered with OpenGLLouis-Francis Ratté-Boulianne
2014-11-10vcl: Add GetPixmapFromScreen and RenderPixmapToScreen to X11SalGraphicsLouis-Francis Ratté-Boulianne
2014-11-10extract cairo rendering and abstract platform bitsMarkus Mohrhard
2014-11-10use configuration value for OpenGL backendMarkus Mohrhard
2014-11-10Add missing glew dependency.Michael Meeks
2014-11-10use Impl for unix vcl pluginsMarkus Mohrhard
2014-08-06Kill XSUN Xinerama supportRiccardo Magliocchetti
2014-03-21move remaining padmin dialogs into vclCaolán McNamara
2014-02-27normalize values of USE_XINERAMAMichael Stahl