Re: [PATCH] config.mak.dev: add -Wformat

2019-01-07 Thread Jonathan Nieder
Junio C Hamano wrote: > Thomas Gummerer writes: >>> From: Thomas Gummerer >>> Date: Fri, 12 Oct 2018 19:40:37 +0100 >>> Subject: [PATCH] config.mak.dev: add -Wformat > > Thanks. I noticed, before merging the topic to 'next', that I > needed to r

Re: [PATCH] config.mak.dev: add -Wformat

2019-01-07 Thread Junio C Hamano
lease is set. > >> -- >8 -- >> From: Thomas Gummerer >> Date: Fri, 12 Oct 2018 19:40:37 +0100 >> Subject: [PATCH] config.mak.dev: add -Wformat Thanks. I noticed, before merging the topic to 'next', that I needed to retitle this further. I'd use something like t

Re: [PATCH] config.mak.dev: add -Wformat

2019-01-06 Thread Thomas Gummerer
p after some time off over Christmas, thanks for tying this up! I agree with the choice of adding -Wall to the CFLAGS here, so even if it is not added to the CFLAGS generated by autoconf (or in mnually set up CFLAGS such as in my original case), we still get a complete set of warnings when DEVEL

Re: [PATCH] config.mak.dev: add -Wformat

2019-01-03 Thread Jonathan Nieder
2018 19:40:37 +0100 > Subject: [PATCH] config.mak.dev: add -Wformat > > 801fa63a90 ("config.mak.dev: add -Wformat-security", 2018-09-08) > added the "-Wformat-security" to the flags set in config.mak.dev. > In the gcc man page this is documented as: >

Re: [PATCH] config.mak.dev: add -Wformat

2019-01-03 Thread Junio C Hamano
do not have strong opinion between -Wall and -Wformat, but I'd probably vote for the former if pressed. -- >8 -- From: Thomas Gummerer Date: Fri, 12 Oct 2018 19:40:37 +0100 Subject: [PATCH] config.mak.dev: add -Wformat 801fa63a90 ("config.mak.dev: add -Wformat-security",

Re: [PATCH] config.mak.dev: add -Wformat

2018-12-27 Thread Jonathan Nieder
+cc: Masaya Suzuki In October, Thomas Gummerer wrote: > On 10/12, Jonathan Nieder wrote: >> Jeff King wrote: >>> On Fri, Oct 12, 2018 at 07:40:37PM +0100, Thomas Gummerer wrote: 801fa63a90 ("config.mak.dev: add -Wformat-security", 2018-09-08) added the -Wformat-security to the flags set

Re: [PATCH] config.mak.dev: add -Wformat

2018-10-12 Thread Thomas Gummerer
On 10/12, Jonathan Nieder wrote: > Jeff King wrote: > > On Fri, Oct 12, 2018 at 07:40:37PM +0100, Thomas Gummerer wrote: > > >> 801fa63a90 ("config.mak.dev: add -Wformat-security", 2018-09-08) added > >> the -Wformat-security to the flags set in config.mak.dev. In the gcc > >> man page this is do

Re: [PATCH] config.mak.dev: add -Wformat

2018-10-12 Thread Jeff King
On Fri, Oct 12, 2018 at 11:54:50AM -0700, Jonathan Nieder wrote: > > I'm not opposed to making config.mak.dev a bit more redundant to handle > > this case, but we'd probably want to include all of -Wall, since it > > contains many other warnings we'd want to make sure are enabled. > > Do you mean

Re: [PATCH] config.mak.dev: add -Wformat

2018-10-12 Thread Jonathan Nieder
Jeff King wrote: > On Fri, Oct 12, 2018 at 07:40:37PM +0100, Thomas Gummerer wrote: >> 801fa63a90 ("config.mak.dev: add -Wformat-security", 2018-09-08) added >> the -Wformat-security to the flags set in config.mak.dev. In the gcc >> man page this is documented as: >> >> If -Wformat is sp

Re: [PATCH] config.mak.dev: add -Wformat

2018-10-12 Thread Jeff King
On Fri, Oct 12, 2018 at 07:40:37PM +0100, Thomas Gummerer wrote: > 801fa63a90 ("config.mak.dev: add -Wformat-security", 2018-09-08) added > the -Wformat-security to the flags set in config.mak.dev. In the gcc > man page this is documented as: > > If -Wformat is specified, also warn abou

[PATCH] config.mak.dev: add -Wformat

2018-10-12 Thread Thomas Gummerer
801fa63a90 ("config.mak.dev: add -Wformat-security", 2018-09-08) added the -Wformat-security to the flags set in config.mak.dev. In the gcc man page this is documented as: If -Wformat is specified, also warn about uses of format functions that represent possible security problem

Re: [PATCH] config.mak.dev: add -Wformat-security

2018-09-08 Thread Duy Nguyen
On Fri, Sep 7, 2018 at 8:21 PM Jeff King wrote: > > We currently build cleanly with -Wformat-security, and it's > a good idea to make sure we continue to do so (since calls > that trigger the warning may be security vulnerabilities). Nice. I had this flag in my config.mak too before switching to

[PATCH] config.mak.dev: add -Wformat-security

2018-09-07 Thread Jeff King
We currently build cleanly with -Wformat-security, and it's a good idea to make sure we continue to do so (since calls that trigger the warning may be security vulnerabilities). Note that we cannot use the stronger -Wformat-nonliteral, as there are case where we are clever with passing around poin