Re: [PATCH 3/3] Silence a bunch of format-zero-length warnings
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- May 4, 2014, 20:13 UTC
- Message-ID
- <53669f7ed2877_61fea2d30c62@nysa.notmuch>
- In-Reply-To
- <20140504190121.GP75770@vauxhall.crustytoothpaste.net>
brian m. carlson wrote:
Show 13 quoted lines
> On Sun, May 04, 2014 at 01:12:55AM -0500, Felipe Contreras wrote: > > This is in gcc 4.9.0: > > > > wt-status.c: In function ‘wt_status_print_unmerged_header’: > > wt-status.c:191:2: warning: zero-length gnu_printf format string [-Wformat-zero-length] > > status_printf_ln(s, c, ""); > > ^ > > > > We could pass -Wno-format-zero-length, but it seems compiler-specific > > flags are frowned upon, so let's just avoid the warning altogether. > > I believe these warnings existed before GCC 4.9 as well, but I'm not > opposed to the change.
Yes, I'm aware of that. I didn't say they started to happen in 4.9, I said they happen in 4.9.
-- Felipe Contreras