From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MFQox-00044m-IY for qemu-devel@nongnu.org; Sat, 13 Jun 2009 06:50:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MFQos-000442-IU for qemu-devel@nongnu.org; Sat, 13 Jun 2009 06:50:46 -0400 Received: from [199.232.76.173] (port=44410 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MFQos-00043t-7p for qemu-devel@nongnu.org; Sat, 13 Jun 2009 06:50:42 -0400 Received: from moutng.kundenserver.de ([212.227.126.171]:53837) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MFQor-0002tT-JW for qemu-devel@nongnu.org; Sat, 13 Jun 2009 06:50:42 -0400 From: Stefan Weil Date: Sat, 13 Jun 2009 12:50:39 +0200 Message-Id: <1244890239-14931-1-git-send-email-weil@mail.berlios.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH] Win32: Fix compiler warning (undefined static function). List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 --- 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