Re: [PATCH 12/16] subtree: rewriting outgoing commits
- From
Elijah Newren <newren@gmail.com>
- Date
- Aug 2, 2010, 04:40 UTC
- Message-ID
- <AANLkTim8mzhvm8unh4SKDJu60ZK4n+WWka-9WSH7yHGF@mail.gmail.com>
- In-Reply-To
- <1280593105-22015-13-git-send-email-pclouds@gmail.com>
2010/7/31 Nguyễn Thái Ngọc Duy <pclouds@gmail.com>: <snip>
> + init_tree_desc(&desc, tree, size);
> + strbuf_init(&buffer, 8192);
> + while (tree_entry(&desc, &entry)) {
> + strbuf_addf(&buffer, "%o %.*s%c", entry.mode, strlen(entry.path), entry.path, '\0');Again, gcc here complains that "subtree.c:390: warning: field precision should have type ‘int’, but argument 4 has type ‘size_t’" -- typecast the return value of strlen to int?