diff options
author | Alexander Monakov <amonakov@ispras.ru> | 2017-07-04 22:53:12 +0300 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2017-07-04 18:04:52 -0400 |
commit | 2e6e08423b95b1b2bce7568f650c2b69d8d8fb8b (patch) | |
tree | b49d8bbf91de7423ac2f305d16b1013563610d5a /src/stdio/vfwprintf.c | |
parent | bc42dcbfd9466c22d8ab0f8235e5091689a95aad (diff) | |
download | musl-2e6e08423b95b1b2bce7568f650c2b69d8d8fb8b.tar.gz musl-2e6e08423b95b1b2bce7568f650c2b69d8d8fb8b.tar.bz2 musl-2e6e08423b95b1b2bce7568f650c2b69d8d8fb8b.tar.xz musl-2e6e08423b95b1b2bce7568f650c2b69d8d8fb8b.zip |
remove ineffective compiler assist from printf
The switch statement has no 'default:' case and the function ends
immediately following the switch, so the extra comparison did not
communicate any extra information to the compiler.
Diffstat (limited to 'src/stdio/vfwprintf.c')
-rw-r--r-- | src/stdio/vfwprintf.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/stdio/vfwprintf.c b/src/stdio/vfwprintf.c index 1e6e47cc..e87ad42a 100644 --- a/src/stdio/vfwprintf.c +++ b/src/stdio/vfwprintf.c @@ -98,8 +98,6 @@ union arg static void pop_arg(union arg *arg, int type, va_list *ap) { - /* Give the compiler a hint for optimizing the switch. */ - if ((unsigned)type > MAXSTATE) return; switch (type) { case PTR: arg->p = va_arg(*ap, void *); break; case INT: arg->i = va_arg(*ap, int); |