[Github-comments] [geany/geany] Move TM and ctags files (#1070)

Colomban Wendling notifications at xxxxx
Fri Jul 22 21:50:49 UTC 2016


> +		int rv = -1;
> +		size_t n;
> +		size_t old_pos;
> +		size_t old_size;
> +		va_list ap_copy;
> +		char c;
> +
> +		old_pos = mio->impl.mem.pos;
> +		old_size = mio->impl.mem.size;
> +		va_copy (ap_copy, ap);
> +		/* compute the size we will need into the buffer */
> +		n = vsnprintf (&c, 1, format, ap_copy);
> +		va_end (ap_copy);
> +		if (mem_try_ensure_space (mio, n))
> +		{
> +			unsigned char c;

```
../../ctags/main/mio.c: In function 'mio_vprintf':
../../ctags/main/mio.c:603:18: warning: declaration of 'c' shadows a previous local [-Wshadow]
    unsigned char c;
                  ^
../../ctags/main/mio.c:593:8: note: shadowed declaration is here
   char c;
        ^
```

Actually, `char c` above for `vsnprintf()` call should use another name, like `dummy`.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/1070/files/f95656cbe818d69bb4432d14b978ec83764872b2#r71951273
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160722/141734c8/attachment.html>


More information about the Github-comments mailing list