* [patch-git] Fix warning in convert-cache
@ 2005-05-02 17:57 tony.luck
0 siblings, 0 replies; only message in thread
From: tony.luck @ 2005-05-02 17:57 UTC (permalink / raw)
To: torvalds; +Cc: git
gcc 3.4.3 kicks out this warning:
convert-cache.c: In function `write_subdirectory':
convert-cache.c:102: warning: field precision is not type int (arg 4)
Signed-off-by: Tony Luck <tony.luck@intel.com>
---
--- k/convert-cache.c
+++ l/convert-cache.c
@@ -99,7 +99,7 @@ static int write_subdirectory(void *buff
continue;
}
- newlen += sprintf(new + newlen, "%o %.*s", S_IFDIR, slash - path, path);
+ newlen += sprintf(new + newlen, "%o %.*s", S_IFDIR, (int)(slash - path), path);
new[newlen++] = 0;
sha1 = (unsigned char *)(new + newlen);
newlen += 20;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-05-02 17:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-02 17:57 [patch-git] Fix warning in convert-cache tony.luck
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).