From 34cc952cd9c4d666b89b1d91054b64eaae46a7f9 Mon Sep 17 00:00:00 2001 From: torcs-ng Date: Sun, 9 Jan 2022 02:08:41 +0000 Subject: [PATCH] - fix build on visual git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@7890 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 17793e2a22689f16145d85d636600a3aa58813e4 Former-commit-id: 1fb4e82e825887050b411598b704aa31e4e0bd6d --- src/modules/racing/standardgame/raceresults.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/racing/standardgame/raceresults.cpp b/src/modules/racing/standardgame/raceresults.cpp index d71f06d58..7011dfb51 100644 --- a/src/modules/racing/standardgame/raceresults.cpp +++ b/src/modules/racing/standardgame/raceresults.cpp @@ -337,7 +337,9 @@ ReStoreRaceResults(const char *race) break; } - [[fallthrough]]; +#if ( __GNUC__ >= 5 || _MSVC_VER >= 1910) + [[fallthrough]]; +#endif /* Otherwise, fall through */ case RM_TYPE_QUALIF: