From 493ca7a0f506a8e96b13444326904b100dea1f63 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Tue, 2 Apr 2024 20:56:48 -0400 Subject: [PATCH] Fix unhandled case warnings --- pcbnew/pcb_io/ipc2581/pcb_io_ipc2581.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pcbnew/pcb_io/ipc2581/pcb_io_ipc2581.cpp b/pcbnew/pcb_io/ipc2581/pcb_io_ipc2581.cpp index 0d4a1c3e9f..e4dd09fd09 100644 --- a/pcbnew/pcb_io/ipc2581/pcb_io_ipc2581.cpp +++ b/pcbnew/pcb_io/ipc2581/pcb_io_ipc2581.cpp @@ -398,6 +398,9 @@ void PCB_IO_IPC2581::addLocationNode( wxXmlNode* aNode, const PCB_SHAPE& aShape case SHAPE_T::ARC: pos = VECTOR2D( 0, 0 ); break; + + case SHAPE_T::UNDEFINED: + wxFAIL; } addLocationNode( aNode, pos.x, pos.y ); @@ -1065,6 +1068,9 @@ void PCB_IO_IPC2581::addShape( wxXmlNode* aContentNode, const PCB_SHAPE& aShape break; } + + case SHAPE_T::UNDEFINED: + wxFAIL; } if( !name.empty() )