<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi Stephen</p>
    <p>Thanks for the pointer on how to compile with clang. Done an
      autogen -</p>
    <p>
      <blockquote type="cite">Running ./configure with 'CC=clang
        CXX=clang++ --enable-debug --disable-ccache --disable-gtk3
        --with-parallelism=5 --without-junit --without-gssapi
        --without-krb5 --enable-dbgutil --enable-compiler-plugins
        --enable-option-checking=fatal --srcdir=/home/alex/master
        --enable-option-checking=fatal'<br>
      </blockquote>
    </p>
    <p>The make gives me a clean compile, with warnings,  which was not
      what I was hoping for! <br>
    </p>
    <p>
      <blockquote type="cite">/home/alex/master/sw/source/ui/inc/mmresultdialogs.hxx:213:5:
        <b><font color="#ff0000">warning</font></b>: VclReferenceBase
        subclass dispose() function MUST call dispose() of its
        superclass as the last thing it does [loplugin:vclwidgets]<br>
        /home/alex/master/sw/source/ui/dbui/mmoutputtypepage.cxx:303:1:
        <b><font color="#ff0000">warning</font></b>: VclReferenceBase
        subclass dispose() function MUST call dispose() of its
        superclass as the last thing it does [loplugin:vclwidgets]<br>
      </blockquote>
    </p>
    <p>I would have liked the compile to have failed in a similar way to
      Jenkins where the <b><font color="#ff0000">warnings</font></b>
      above became <b><font color="#ff0000">errors</font></b>-</p>
    <p>
      <blockquote type="cite">In file included from
/home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil_64/sw/source/ui/dbui/mmoutputtypepage.cxx:37:<br>
/home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil_64/sw/source/ui/inc/mmresultdialogs.hxx:213:5:<b>
        </b><b><font color="#ff0000"> error</font></b>: VclReferenceBase
        subclass dispose() function MUST call dispose() of its
        superclass as the last thing it does [loplugin:vclwidgets]
        <br>
             virtual void        dispose() override;
        <br>
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        <br>
/home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil_64/sw/source/ui/dbui/mmoutputtypepage.cxx:303:1:
        <b><font color="#ff0000"> error</font></b>: VclReferenceBase
        subclass dispose() function MUST call dispose() of its
        superclass as the last thing it does [loplugin:vclwidgets]
        <br>
        void SwSendMailDialog::dispose()
        <br>
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        <br>
        2 errors generated.
        <br>
/home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil_64/solenv/gbuild/LinkTarget.mk:288:
        recipe for target
'/home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil_64/workdir/CxxObject/sw/source/ui/dbui/mmoutputtypepage.o'
        failed
        <br>
        make[1]: ***
[/home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil_64/workdir/CxxObject/sw/source/ui/dbui/mmoutputtypepage.o]
        Error 1
        <br>
        make[1]: *** Waiting for unfinished jobs....
        <br>
        Makefile:266: recipe for target 'build' failed
        <br>
        make: *** [build] Error 2
        <br>
        Build step 'Execute shell' marked build as failure
        <br>
        Finished: FAILURE
      </blockquote>
       </p>
    <p>What have I missed?<br>
    </p>
    <p>Alex<br>
    </p>
    <p><br>
    </p>
    <p><br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 14/09/17 11:40, Stephan Bergmann
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:8ee3aa53-f929-2cd3-54a5-ced90c9499dc@redhat.com">On
      09/13/2017 11:27 AM, Alex Kempshall wrote:
      <br>
      <blockquote type="cite">Is there a way that I can pick up these
        type of errors before submitting them to gerrit?
        <br>
      </blockquote>
      <br>
      By building with Clang and configuring --enable-compiler-plugins. 
      See
<a class="moz-txt-link-rfc2396E" href="https://wiki.documentfoundation.org/Development/Building_LibreOffice_with_Clang"><https://wiki.documentfoundation.org/Development/Building_LibreOffice_with_Clang></a>
      for some pointers (and
      <a class="moz-txt-link-rfc2396E" href="https://wiki.documentfoundation.org/Development/Clang_plugins"><https://wiki.documentfoundation.org/Development/Clang_plugins></a>
      for more info on loplugin).
      <br>
      <br>
    </blockquote>
    <br>
  </body>
</html>