Introduce new KI_FALLTHROUGH macro

Annotate purposeful fallthroughs in switch statements with the
KI_FALLTHROUGH macro.
This commit is contained in:
Ian McInerney
2020-04-25 00:44:09 +01:00
parent ff67d6300d
commit 99dcadf7e6
37 changed files with 145 additions and 39 deletions
+1 -1
View File
@@ -324,8 +324,8 @@ void PSLIKE_PLOTTER::fputsPostscriptString(FILE *fout, const wxString& txt)
case ')':
case '\\':
putc( '\\', fout );
KI_FALLTHROUGH;
// FALLTHRU
default:
putc( ch, fout );
break;