[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] Win32: Fix compiler warning (undefined static funct
From: |
Stefan Weil |
Subject: |
[Qemu-devel] [PATCH] Win32: Fix compiler warning (undefined static function). |
Date: |
Sat, 13 Jun 2009 12:50:39 +0200 |
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 <address@hidden>
---
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCH] Win32: Fix compiler warning (undefined static function).,
Stefan Weil <=