From c8917a095109b6c6a58906da22f53ba8446d64b5 Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Wed, 19 Aug 2020 11:34:30 +0100 Subject: [PATCH] Cleamup some compiler warnings --- eeschema/dialogs/dialog_edit_line_style.cpp | 3 --- plugins/3d/oce/loadmodel.cpp | 2 +- plugins/3d/vrml/vrml.cpp | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/eeschema/dialogs/dialog_edit_line_style.cpp b/eeschema/dialogs/dialog_edit_line_style.cpp index 7a5a880aa9..fe574fb0f2 100644 --- a/eeschema/dialogs/dialog_edit_line_style.cpp +++ b/eeschema/dialogs/dialog_edit_line_style.cpp @@ -31,9 +31,6 @@ #include #include -const int BUTT_COLOR_MINSIZE_X = 32; -const int BUTT_COLOR_MINSIZE_Y = 20; - struct lineTypeStruct { diff --git a/plugins/3d/oce/loadmodel.cpp b/plugins/3d/oce/loadmodel.cpp index eb4f953c00..fc11a0d26b 100644 --- a/plugins/3d/oce/loadmodel.cpp +++ b/plugins/3d/oce/loadmodel.cpp @@ -483,7 +483,7 @@ bool readSTEPZ( Handle(TDocStd_Document)& m_doc, const char* aFileName ) ifile.Read( buffer, size); std::string expanded = gzip::decompress( buffer, size ); - delete buffer; + delete[] buffer; ofile.Write( expanded.data(), expanded.size() ); ofile.Close(); diff --git a/plugins/3d/vrml/vrml.cpp b/plugins/3d/vrml/vrml.cpp index 643c0179dc..768f0edcf7 100644 --- a/plugins/3d/vrml/vrml.cpp +++ b/plugins/3d/vrml/vrml.cpp @@ -187,7 +187,7 @@ SCENEGRAPH* LoadVRML( const wxString& aFileName, bool useInline ) ifile.Read( buffer, size); std::string expanded = gzip::decompress( buffer, size ); - delete buffer; + delete[] buffer; ofile.Write( expanded.data(), expanded.size() ); ofile.Close();