From c678ab90966c0875ff21e7f47aea0910a56a1cd4 Mon Sep 17 00:00:00 2001 From: cherierm Date: Thu, 26 Oct 2006 11:50:30 +0000 Subject: [PATCH] fixe the warnings in surf.c git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2905 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/surf/surf.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/surf/surf.c b/src/surf/surf.c index ae05341fe5..3d4ec1c9aa 100644 --- a/src/surf/surf.c +++ b/src/surf/surf.c @@ -18,6 +18,7 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_kernel, surf, #define MAX_DRIVE 26 #endif +#ifdef _WIN32 static const char* disk_drives_letter_table[MAX_DRIVE] = { "A:\\", @@ -47,6 +48,7 @@ static const char* disk_drives_letter_table[MAX_DRIVE] = "Y:\\", "Z:\\" }; +#endif /* #ifdef _WIN32 */ /* * Returns the initial path. On Windows the initial path is @@ -54,8 +56,8 @@ static const char* disk_drives_letter_table[MAX_DRIVE] = * case the function returns "./" that represents the current * directory on Unix/Linux platforms. */ - -const char* __surf_get_initial_path() + +const char* __surf_get_initial_path(void) { #ifdef _WIN32 -- 2.20.1