Skip to content

Commit

Permalink
DXF: Silence gcc 13 compiler warning in C++17 mode
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaston committed Nov 9, 2023
1 parent 7e8abdd commit eab55e1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ogr/ogrsf_frmts/dxf/ogrdxf_polyline_smooth.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ class DXFSmoothPolylineVertex
}
};

// Quiet warning from gcc (possibly https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112370)
#if defined(__GNUC__) && __GNUC__ >= 13
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wfree-nonheap-object"
#endif
class DXFSmoothPolyline
{
// A DXF polyline that includes vertex bulge information.
Expand Down Expand Up @@ -151,5 +156,8 @@ class DXFSmoothPolyline
void EmitLine(const DXFSmoothPolylineVertex &,
const DXFSmoothPolylineVertex &, OGRLineString *) const;
};
#if defined(__GNUC__) && __GNUC__ >= 13
#pragma GCC diagnostic pop
#endif

#endif /* OGRDXF_SMOOTH_POLYLINE_H_INCLUDED */

0 comments on commit eab55e1

Please sign in to comment.