Skip to content

Commit

Permalink
Fixed some gcc11 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
afxgroup committed Jul 17, 2023
1 parent c08d6a1 commit 2d47ad8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library/stdio/vfprintf.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ static int fmt_fp(Out *f, long double y, int w, int p, int fl, int t) {
char buf[9 + LDBL_MANT_DIG / 4] = { 0 }, *s;
const char *prefix = "-0X+0X 0X-0x+0x 0x";
int pl;
char ebuf0[3 * sizeof(int)] = { 0 }, *ebuf = &ebuf0[3 * sizeof(int)], *estr;
char ebuf0[3 * sizeof(int)] = { 0 }, *ebuf = &ebuf0[3 * sizeof(int)], *estr = NULL;

pl = 1;
if (signbit(y)) {
Expand Down
2 changes: 1 addition & 1 deletion library/stdlib/gdtoa-gethex.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ gethex(const char **sp, const FPI *fpi, int32_t *exp, _Bigint **bp, int sign, lo
switch (*++s) {
case '-':
esign = 1;
/* Fallthrough */;
/* fallthrough */
case '+':
s++;
}
Expand Down

0 comments on commit 2d47ad8

Please sign in to comment.