git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] init-db: remove unused #includes

From
Jeff King <peff@peff.net>
Date
Jan 15, 2015, 22:31 UTC
Message-ID
<20150115223112.GB19021@peff.net>
In-Reply-To
<xmqqsifb6atr.fsf@gitster.dls.corp.google.com>
On Thu, Jan 15, 2015 at 12:36:00PM -0800, Junio C Hamano wrote:
Show 13 quoted lines
> Jeff King <peff@peff.net> writes:
> 
> > FWIW, the full set of CFLAGS I use (which I specify in config.mak) is:
> >
> >     CFLAGS += -Wall -Werror
> >     CFLAGS += -Wno-format-zero-length
> >     CFLAGS += -Wdeclaration-after-statement
> >     CFLAGS += -Wpointer-arith
> >     CFLAGS += -Wstrict-prototypes
> >     CFLAGS += -Wold-style-declaration
> 
> I think I have no-pointer-to-int-cast, old-style-definition and vla
> in addition to the above.

Thanks, I added the latter two to my setup. But what is the purpose of turning off pointer-to-int warnings? It seems like those are a good indication of a sloppy construct (and AFAICT, we do not have any code which triggers on it).

-Peff
Previous: Junio C HamanoNext: Junio C Hamano
Message 7 of 8 in “init-db: remove unused #includes”
  1. init-db: remove unused #includesAlexander Kuleshov, Jan 14, 2015
  2. Junio C HamanoJan 14, 2015
  3. Junio C HamanoJan 14, 2015
  4. Alexander KuleshovJan 15, 2015
  5. Jeff KingJan 15, 2015
  6. Junio C HamanoJan 15, 2015
  7. Jeff KingJan 15, 2015
  8. Junio C HamanoJan 15, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.