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

Andrew C Aitchison andrew at aitchison.me.uk
Sat Apr 29 04:21:47 PDT 2023


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

-- 
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: 968 bytes
Desc: 
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20230429/a52b1550/attachment-0001.patch>


More information about the gdal-dev mailing list