From 673bb2f1524c24f8f338a473ae03382f9a8bdb9d Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Sat, 26 Oct 2024 22:10:43 -0400 Subject: [PATCH] Fix fallthrough warning --- pcbnew/tools/edit_tool.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pcbnew/tools/edit_tool.cpp b/pcbnew/tools/edit_tool.cpp index 5bfded88a8..b921573f22 100644 --- a/pcbnew/tools/edit_tool.cpp +++ b/pcbnew/tools/edit_tool.cpp @@ -3018,6 +3018,7 @@ int EDIT_TOOL::Increment( const TOOL_EVENT& aEvent ) commit.Modify( &pad ); pad.SetNumber( *newNumber ); } + break; } case PCB_TEXT_T: @@ -3032,11 +3033,11 @@ int EDIT_TOOL::Increment( const TOOL_EVENT& aEvent ) commit.Modify( &text ); text.SetText( *newText ); } - } - default: - { + break; } + default: + break; } }