Commit 077e453f authored by unknown's avatar unknown

Fix compiler warnings

parent 4997ddfa
...@@ -249,8 +249,7 @@ extern ulonglong strtoull(const char *str, char **ptr, int base); ...@@ -249,8 +249,7 @@ extern ulonglong strtoull(const char *str, char **ptr, int base);
extern size_t my_vsnprintf(char *str, size_t n, extern size_t my_vsnprintf(char *str, size_t n,
const char *format, va_list ap); const char *format, va_list ap);
extern size_t my_snprintf(char *to, size_t n, const char *fmt, ...) extern size_t my_snprintf(char *to, size_t n, const char *fmt, ...);
ATTRIBUTE_FORMAT(printf, 3, 4);
#if defined(__cplusplus) #if defined(__cplusplus)
} }
......
...@@ -437,7 +437,7 @@ size_t my_b_vprintf(IO_CACHE *info, const char* fmt, va_list args) ...@@ -437,7 +437,7 @@ size_t my_b_vprintf(IO_CACHE *info, const char* fmt, va_list args)
/* TODO: implement precision */ /* TODO: implement precision */
if (backtick_quoting) if (backtick_quoting)
{ {
size_t total= my_b_write_backtick_quote(info, (uchar *) par, length2); size_t total= my_b_write_backtick_quote(info, par, length2);
if (total == (size_t)-1) if (total == (size_t)-1)
goto err; goto err;
out_length+= total; out_length+= total;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment