Skip to content

Commit

Permalink
fix:[kstdio]Disable "-Wimplicit-fallthrough" below GNUC V7 (#9459)
Browse files Browse the repository at this point in the history
fix:Disable "-Wimplicit-fallthrough" below GNUC V7
  • Loading branch information
wdfk-prog committed Sep 22, 2024
1 parent 9a27de9 commit 5ec20c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/klibc/kstdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 5ec20c4

Please sign in to comment.