• Stephan Bergmann's avatar
    Disable GCC 6 -Wnull-dereference again for now · bb081667
    Stephan Bergmann yazdı
    ...at least with both gcc-6.1.1-3.fc24.x86_64 and a recent GCC 7 trunk build it
    produces lots of incomprehensible (potentially false positive) occurrences in a
    --disable-debug build, like
    
    > [CXX] store/source/stordir.cxx
    > In file included from /home/sbergman/lo/core/store/source/stordir.hxx:30:0,
    >                  from /home/sbergman/lo/core/store/source/stordir.cxx:20:
    > /home/sbergman/lo/core/store/source/storbase.hxx: In member function ‘storeError store::OStoreDirectory_Impl::create(store::OStorePageManager*, rtl_String*, rtl_String*, storeAccessMode)’:
    > /home/sbergman/lo/core/store/source/storbase.hxx:237:23: error: potential null pointer dereference [-Werror=null-dereference]
    >          m_nUsed = rhs.m_nUsed;
    >                    ~~~~^~~~~~~
    > /home/sbergman/lo/core/store/source/storbase.hxx:236:23: error: potential null pointer dereference [-Werror=null-dereference]
    >          m_nSize = rhs.m_nSize;
    >                    ~~~~^~~~~~~
    > /home/sbergman/lo/core/store/source/storbase.hxx:235:23: error: potential null pointer dereference [-Werror=null-dereference]
    >          m_nAddr = rhs.m_nAddr;
    >                    ~~~~^~~~~~~
    > [...]
    > [CXX] store/source/storlckb.cxx
    > In file included from /home/sbergman/lo/core/store/source/storlckb.hxx:29:0,
    >                  from /home/sbergman/lo/core/store/source/storlckb.cxx:20:
    > /home/sbergman/lo/core/store/source/storbase.hxx: In member function ‘storeError store::OStoreLockBytes::readAt(sal_uInt32, void*, sal_uInt32, sal_uInt32&)’:
    > /home/sbergman/lo/core/store/source/storbase.hxx:595:26: error: potential null pointer dereference [-Werror=null-dereference]
    >          return isA<U>(p) ? static_cast<U*>(p) : 0;
    >                 ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
    
    <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=16351> "NULL dereference warnings"
    looks like this is a known problem.
    
    Change-Id: I5eb0c9def7dd12e3a440d280e3fa2331317031b4
    bb081667
Adı
Son kayıt (commit)
Son güncelleme
..
bin Loading commit data...
buck Loading commit data...
doc/gbuild Loading commit data...
gbuild Loading commit data...
gcc-wrappers Loading commit data...
gdb Loading commit data...
inc Loading commit data...
lldb/libreoffice Loading commit data...
maven Loading commit data...
sanitizers Loading commit data...
Executable_concat-deps.mk Loading commit data...
Executable_g++-wrapper.mk Loading commit data...
Executable_gcc-wrapper.mk Loading commit data...
Makefile Loading commit data...
Module_solenv.mk Loading commit data...
README Loading commit data...
StaticLibrary_wrapper.mk Loading commit data...