From b80a9014ff7b4a02efa7eb8f3a2254ff0903a296 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Fri, 31 Mar 2023 23:53:11 +0100 Subject: [PATCH] Fix gcc warning. --- pcbnew/pcb_text.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pcbnew/pcb_text.cpp b/pcbnew/pcb_text.cpp index dee077afa3..8bfc4002bc 100644 --- a/pcbnew/pcb_text.cpp +++ b/pcbnew/pcb_text.cpp @@ -405,6 +405,9 @@ wxString PCB_TEXT::GetItemDescription( UNITS_PROVIDER* aUnitsProvider ) const KIUI::EllipsizeMenuText( GetShownText() ), GetLayerName() ); } + + // Can't get here, but gcc doesn't seem to know that.... + return wxEmptyString; }