summaryrefslogtreecommitdiff
path: root/pkt-line.c
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2011-12-20 23:27:41 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-12-21 00:02:08 (GMT)
commit97f261b1e7f1af54aed700e61cdb8af74dbd2459 (patch)
treefe57c3a143e14a2d02404bd1dd93436e76674e21 /pkt-line.c
parent7b6c5836cf02999955b68c79f1cf2d13040acbc3 (diff)
downloadgit-97f261b1e7f1af54aed700e61cdb8af74dbd2459.zip
git-97f261b1e7f1af54aed700e61cdb8af74dbd2459.tar.gz
git-97f261b1e7f1af54aed700e61cdb8af74dbd2459.tar.bz2
builtin/init-db.c: eliminate -Wformat warning on Solaris
On Solaris systems we'd warn about an implicit cast of mode_t when we printed things out with the %d format. We'd get this warning under GCC 4.6.0 with Solaris headers: builtin/init-db.c: In function ‘separate_git_dir’: builtin/init-db.c:354:4: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘mode_t’ [-Wformat] We've been doing this ever since v1.7.4.1-296-gb57fb80. Just work around this by adding an explicit cast. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pkt-line.c')
0 files changed, 0 insertions, 0 deletions