From: Stefan Weil <weil@mail.berlios.de>
To: QEMU Developers <qemu-devel@nongnu.org>
Subject: [Qemu-devel] [PATCH] Win32: Fix compiler warning (undefined static function).
Date: Sat, 13 Jun 2009 12:50:39 +0200 [thread overview]
Message-ID: <1244890239-14931-1-git-send-email-weil@mail.berlios.de> (raw)
For win32, function slirp_smb is declared but unused and undefined.
This results in a gcc compiler warning:
net.c:668: warning: ‘slirp_smb’ declared ‘static’ but never defined
The patch fixes this warning.
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
---
net.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/net.c b/net.c
index e190865..af9de73 100644
--- a/net.c
+++ b/net.c
@@ -665,7 +665,9 @@ static const char *slirp_smb_export;
#endif
static VLANClientState *slirp_vc;
+#ifndef _WIN32
static void slirp_smb(const char *exported_dir);
+#endif
static void slirp_redirection(Monitor *mon, const char *redir_str);
int slirp_can_output(void)
--
1.5.6.5
reply other threads:[~2009-06-13 10:50 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1244890239-14931-1-git-send-email-weil@mail.berlios.de \
--to=weil@mail.berlios.de \
--cc=qemu-devel@nongnu.org \
/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).