]> git.lyx.org Git - features.git/commitdiff
Fix Clang warning about struct/class mismatch
authorScott Kostyshak <skostysh@lyx.org>
Thu, 26 Nov 2020 18:48:42 +0000 (13:48 -0500)
committerScott Kostyshak <skostysh@lyx.org>
Thu, 26 Nov 2020 18:51:12 +0000 (13:51 -0500)
CaretGeometry is defined as a struct, but was forward-declared as a
class. Now we forward-declare as a struct. This addresses the
following Clang warning (that does not appear with GCC):

src/frontends/CaretGeometry.h:27:1: warning: 'CaretGeometry' defined
as a struct here but previously declared as a class; this is valid,
but may result in linker errors under the Microsoft C++ ABI
[-Wmismatched-tags]

src/BufferView.h

index ca7b20bd33aef56ef353717a05ff795a25c6d512..1b76da27117c593e4fdad9bc029f5465883005d4 100644 (file)
@@ -26,7 +26,7 @@ namespace lyx {
 
 namespace support { class FileName; }
 
-namespace frontend { class CaretGeometry; }
+namespace frontend { struct CaretGeometry; }
 namespace frontend { class Painter; }
 namespace frontend { class GuiBufferViewDelegate; }