Skip to contentSkip to conversation

Win32: Fix compiler warning (undefined static function).

PATCH New Stefan Weil 1 participant 1 message Jun 13, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Win32: Fix compiler warning (undefined static function).

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.

---
 net.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
net.c +2 -0
index e190865..af9de73 100644
@@ -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)
Signature · 1 line
1.5.6.5