Skip to content

Commit ab60795

Browse files
author
nexussafe
committed
Fix switch default
1 parent 42d6a0c commit ab60795

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tinyformat.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,8 @@ inline const char* printFormatStringLiteral(std::ostream& out, const char* fmt)
561561
// for "%%", tack trailing % onto next literal section.
562562
fmt = ++c;
563563
break;
564+
default:
565+
break;
564566
}
565567
}
566568
}
@@ -630,6 +632,8 @@ inline const char* streamStateFromFormat(std::ostream& out, bool& spacePadPositi
630632
spacePadPositive = false;
631633
widthExtra = 1;
632634
continue;
635+
default:
636+
break;
633637
}
634638
break;
635639
}
@@ -743,6 +747,8 @@ inline const char* streamStateFromFormat(std::ostream& out, bool& spacePadPositi
743747
TINYFORMAT_ERROR("tinyformat: Conversion spec incorrectly "
744748
"terminated by end of string");
745749
return c;
750+
default:
751+
break;
746752
}
747753
if(intConversion && precisionSet && !widthSet)
748754
{

0 commit comments

Comments
 (0)