<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Andrew,</p>
    <p>fixed per <a class="moz-txt-link-freetext" href="https://github.com/OSGeo/gdal/pull/7660">https://github.com/OSGeo/gdal/pull/7660</a> . Your patch
      proposal didn't work with older gcc versions that don't like the
      "::" in _has_cpp_attribute(clang::fallthrough). I've reworked
      & simplified it. I've verified it silences the warning with
      23.04 + gcc 13</p>
    <p>Even<br>
    </p>
    <p>
      <style type="text/css">
</style></p>
    <p>
      <style type="text/css">td {border: 1px solid #cccccc;}br {mso-data-placement:same-cell;}</style></p>
    <div class="moz-cite-prefix">Le 29/04/2023 à 17:00, Andrew C
      Aitchison a écrit :<br>
    </div>
    <blockquote type="cite"
      cite="mid:bb893408-c60a-7205-09b8-9f553e86cd81@aitchison.me.uk">On
      Sat, 29 Apr 2023, Andrew C Aitchison wrote:
      <br>
      <br>
      <br>
      <blockquote type="cite">Ubuntu 23-04 (Lunar) has g++ v13.0.1 (in
        the universe section,
        <br>
        this is not the default g++ compiler).
        <br>
        At least as curently shipped, this warns about the line
        <br>
            [[clang::fallthrough]];
        <br>
        (partly becuase with the default settings
        <br>
            [[fallthrough]];
        <br>
        is now needed to silence warnings where a fallthrough *is*
        intended).
        <br>
        <br>
        Based on <a class="moz-txt-link-freetext" href="https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109653#c3">https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109653#c3</a>
        <br>
        I have attached a patch for ports/cpl_port.h
        <br>
      </blockquote>
      <br>
      Sorry, the previous patch did not mauch gdal's usage of
      CPL_FALLTHROUGH.
      <br>
      Please use this patch instead.
      <br>
      <br>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
  </body>
</html>