Skip to content

Commit

Permalink
fix:Disable "-Wimplicit-fallthrough" below GNUC V7
Browse files Browse the repository at this point in the history
  • Loading branch information
wdfk-prog committed Sep 21, 2024
1 parent 9a27de9 commit 3e77322
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 3e77322

Please sign in to comment.