From: brian m. carlson Date: Sun, 04 May 2014 19:01:22 GMT Subject: Re: [PATCH 3/3] Silence a bunch of format-zero-length warnings Message-ID: <20140504190121.GP75770@vauxhall.crustytoothpaste.net> In-Reply-To: <1399183975-2346-4-git-send-email-felipe.contreras@gmail.com> 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. -- brian m. carlson / brian with sandals: Houston, Texas, US +1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187