From 96a6188f0c910bf4aceb022220c535dd644c9df1 Mon Sep 17 00:00:00 2001 From: Arthur Bols Date: Wed, 21 Dec 2022 00:24:37 +0100 Subject: [PATCH] [Piece] Fix warn --- Piece.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Piece.cpp b/Piece.cpp index e49534b..ebeac42 100644 --- a/Piece.cpp +++ b/Piece.cpp @@ -54,6 +54,8 @@ std::ostream &operator<<(std::ostream &os, const Piece &piece) { break; case PieceType::King: typeNum = 'K'; break; + default: + return os; } if (piece.color() == PieceColor::Black) {