* [Qemu-devel] [PATCH] Win32: Fix compiler warning (undefined static function).
@ 2009-06-13 10:50 Stefan Weil
0 siblings, 0 replies; only message in thread
From: Stefan Weil @ 2009-06-13 10:50 UTC (permalink / raw)
To: QEMU Developers
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-06-13 10:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-13 10:50 [Qemu-devel] [PATCH] Win32: Fix compiler warning (undefined static function) Stefan Weil
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.