Fix unhandled case warnings

This commit is contained in:
Jon Evans 2024-04-02 20:56:48 -04:00
parent 75b61956e9
commit 493ca7a0f5
1 changed files with 6 additions and 0 deletions

View File

@ -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() )