diff options
| author | Chris Osterwood <osterwood@gmail.com> | 2019-08-08 14:14:23 -0400 |
|---|---|---|
| committer | Chris Osterwood <osterwood@gmail.com> | 2019-08-08 14:14:23 -0400 |
| commit | fb2712410e49e2e056ca1900b9c49bb0831bad74 (patch) | |
| tree | 8959d4afaa94175a870a5268ed638bac620a9023 /lib/utils/printf.c | |
| parent | 97e7fea517cef72926ac4e8d30c711a59226f259 (diff) | |
| parent | 47a0b7cba141efb0909d74db3401ae902f6e9a96 (diff) | |
Merge branch 'master' into capablerobot-usbhub
Diffstat (limited to 'lib/utils/printf.c')
| -rw-r--r-- | lib/utils/printf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/utils/printf.c b/lib/utils/printf.c index e19da2dc0..3a4cc2549 100644 --- a/lib/utils/printf.c +++ b/lib/utils/printf.c @@ -103,9 +103,11 @@ STATIC void strn_print_strn(void *data, const char *str, size_t len) { strn_print_env->remain -= len; } -#if defined(__GNUC__) && !defined(__clang__) +#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 9 // uClibc requires this alias to be defined, or there may be link errors // when linkings against it statically. +// GCC 9 gives a warning about missing attributes so it's excluded until +// uClibc+GCC9 support is needed. int __GI_vsnprintf(char *str, size_t size, const char *fmt, va_list ap) __attribute__((weak, alias ("vsnprintf"))); #endif |
