diff options
| author | wdfk-prog <[email protected]> | 2024-09-22 09:49:59 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-09-22 09:49:59 +0800 |
| commit | 5ec20c4289ff0e4daeb2f0227088f803c3c2294b (patch) | |
| tree | e64279b796fdc29405beaa9c4378a38f36930e7f /src/klibc | |
| parent | 9a27de92ae86dd23581e8294fac95353c9eb0145 (diff) | |
fix:[kstdio]Disable "-Wimplicit-fallthrough" below GNUC V7 (#9459)
fix:Disable "-Wimplicit-fallthrough" below GNUC V7
Diffstat (limited to 'src/klibc')
| -rw-r--r-- | src/klibc/kstdio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/klibc/kstdio.c b/src/klibc/kstdio.c index 44ff758e92..879a938b6a 100644 --- a/src/klibc/kstdio.c +++ b/src/klibc/kstdio.c @@ -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" |
