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

Re: [RFC PATCH 4/3] Add example git-vcs-p4

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 12, 2009, 06:29 UTC
Message-ID
<7viqoljaub.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<alpine.LNX.1.00.0901120026290.19665@iabervon.org>
Daniel Barkalow <barkalow@iabervon.org> writes:
Show 5 quoted lines
>> vcs-p4.c:504: warning: ISO C90 forbids mixed declarations and code
>> make: *** [vcs-p4.o] Error 1
>
> I haven't been over the 4/3 stuff for coding style yet. But how do you get 
> these warnings?
I thought I have mentioned this already, but...
I compile with (at least) these:
    -Wno-pointer-to-int-cast
    -Wold-style-definition
    -Wdeclaration-after-statement
explicitly specified.

I also run kernel's checkpatch.pl script (but ignoring "more than 80-col is too long" rule) from time to time.

I consider these are good ways to check style-discipline.
Previous: Daniel BarkalowNext: Alex Riesen
Message 4 of 6 in “Add example git-vcs-p4”
  1. 4/3 Add example git-vcs-p4Daniel Barkalow, Jan 11, 2009
  2. Junio C HamanoJan 12, 2009
  3. Daniel BarkalowJan 12, 2009
  4. Junio C HamanoJan 12, 2009
  5. Alex RiesenJan 12, 2009
  6. Daniel BarkalowJan 12, 2009

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.