From: Elijah Newren Date: Mon, 02 Aug 2010 04:40:01 GMT Subject: Re: [PATCH 12/16] subtree: rewriting outgoing commits Message-ID: In-Reply-To: <1280593105-22015-13-git-send-email-pclouds@gmail.com> 2010/7/31 Nguyễn Thái Ngọc Duy : > +       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?