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

Re: [RFH] Exploration of an alternative diff_delta() algorithm

From
Nicolas Pitre <nico@cam.org>
Date
Apr 9, 2006, 18:08 UTC
Message-ID
<Pine.LNX.4.64.0604091401560.2215@localhost.localdomain>
In-Reply-To
<20060409175316.GA21455@erlang.gbar.dtu.dk>
On Sun, 9 Apr 2006, Peter Eriksen wrote:
Show 6 quoted lines
> On Sun, Apr 09, 2006 at 01:40:14PM -0400, Nicolas Pitre wrote:
> ...
> > It also has lots of compilation warnings.
> 
> Hm, I don't get any warnings.  Would you mind pasting them, so I
> can see what it's about?

gcc -o diff-delta.o -c -g -O2 -Wall -DSHA1_HEADER='<openssl/sha.h>' diff-delta.c diff-delta.c: In function 'diff_delta': diff-delta.c:123: warning: pointer targets in passing argument 1 of 'init_hash' differ in signedness diff-delta.c:124: warning: pointer targets in passing argument 1 of 'init_hash' differ in signedness diff-delta.c:170: warning: pointer targets in passing argument 1 of 'hash' differ in signedness diff-delta.c:171: warning: pointer targets in passing argument 1 of 'hash' differ in signedness diff-delta.c:203: warning: pointer targets in passing argument 1 of 'init_hash' differ in signedness diff-delta.c:204: warning: pointer targets in passing argument 1 of 'init_hash' differ in signedness

Also you should avoid declaring new variables after code in the same scope, like you do with version_offset for example. This is a feature that many C compilers don't support.

Nicolas
Previous: Peter Eriksen
Message 9 of 9 in “[RFH] Exploration of an alternative diff_delta() algorithm”
  1. Peter EriksenApr 9, 2006
  2. Nicolas PitreApr 9, 2006
  3. Peter EriksenApr 9, 2006
  4. Nicolas PitreApr 9, 2006
  5. Peter EriksenApr 9, 2006
  6. Nicolas PitreApr 10, 2006
  7. Nicolas PitreApr 9, 2006
  8. Peter EriksenApr 9, 2006
  9. Nicolas PitreApr 9, 2006

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.