[gdal-dev] GNU g++-13 and [[clang::fallthrough]]

Andrew C Aitchison andrew at aitchison.me.uk
Sat Apr 29 08:00:20 PDT 2023


On Sat, 29 Apr 2023, Andrew C Aitchison wrote:


> Ubuntu 23-04 (Lunar) has g++ v13.0.1 (in the universe section,
> this is not the default g++ compiler).
> At least as curently shipped, this warns about the line
> 	[[clang::fallthrough]];
> (partly becuase with the default settings
> 	[[fallthrough]];
> is now needed to silence warnings where a fallthrough *is* intended).
>
> Based on https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109653#c3
> I have attached a patch for ports/cpl_port.h

Sorry, the previous patch did not mauch gdal's usage of CPL_FALLTHROUGH.
Please use this patch instead.

-- 
Andrew C. Aitchison                      Kendal, UK
                    andrew at aitchison.me.uk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc13fallthrough.patch
Type: text/x-diff
Size: 971 bytes
Desc: 
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20230429/362a3f84/attachment.patch>


More information about the gdal-dev mailing list