From: cherierm Date: Thu, 26 Oct 2006 11:50:30 +0000 (+0000) Subject: fixe the warnings in surf.c X-Git-Tag: v3.3~2454 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/c678ab90966c0875ff21e7f47aea0910a56a1cd4 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 --- 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