From: Alex Riesen <fork0@users.sourceforge.net>
To: Petr Baudis <pasky@ucw.cz>
Cc: git@vger.kernel.org
Subject: PATCH: diff-cache.c:51: `return' with a value, in function returning void
Date: Tue, 3 May 2005 21:56:01 +0200 [thread overview]
Message-ID: <20050503195601.GA4165@steel.home> (raw)
gcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-diff-cache diff-cache.c libgit.a -lz -lssl
diff-cache.c: In function `show_new_file':
diff-cache.c:51: warning: `return' with a value, in function returning void
--- cogito/diff-cache.c 2005-05-03 21:50:42.000000000 +0200
+++ cogito/diff-cache.c 2005-05-03 21:52:00.000000000 +0200
@@ -48,7 +48,6 @@ static void show_new_file(struct cache_e
return;
show_file("+", new, sha1, mode);
- return 0;
}
static int show_modified(struct cache_entry *old, struct cache_entry *new)
next reply other threads:[~2005-05-03 19:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-03 19:56 Alex Riesen [this message]
2005-05-03 21:33 ` PATCH: diff-cache.c:51: `return' with a value, in function returning void Junio C Hamano
2005-05-03 21:44 ` Alex Riesen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050503195601.GA4165@steel.home \
--to=fork0@users.sourceforge.net \
--cc=git@vger.kernel.org \
--cc=pasky@ucw.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).