fix:[kstdio]Disable "-Wimplicit-fallthrough" below GNUC V7 (#9459)

fix:Disable "-Wimplicit-fallthrough" below GNUC V7
This commit is contained in:
wdfk-prog 2024-09-22 09:49:59 +08:00 committed by GitHub
parent 9a27de92ae
commit 5ec20c4289
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -287,7 +287,7 @@ static char *print_number(char *buf,
return buf;
}
#if defined(__GNUC__) && !defined(__ARMCC_VERSION) /* GCC */
#if defined(__GNUC__) && (__GNUC__ >= 7) && !defined(__ARMCC_VERSION) /* GCC */
#pragma GCC diagnostic push
/* ignore warning: this statement may fall through */
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"