aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil/file_util.c
diff options
context:
space:
mode:
authorTomasz Moń <desowin@gmail.com>2019-09-15 11:25:18 +0200
committerPeter Wu <peter@lekensteyn.nl>2019-09-21 08:51:34 +0000
commit893a2d9c62e8dcc4fe0f43c47e01743136f55386 (patch)
treed42803e115b676b08c0a659df75390554d2b53b9 /wsutil/file_util.c
parent29be7f9d9a6452a63cb22c425ac1c56d1f99f10d (diff)
MSVC: Warn about unused formal parameters
Provide _U_ macro definition for Visual Studio. Change the way _U_ macro is ifdefed for some targets to allow Visual Studio to recognize it. Ping-Bug: 15832 Change-Id: Ic7ce145cbe9e8aa751d64c9c09ce8ba6c1bbbd30 Reviewed-on: https://code.wireshark.org/review/34530 Tested-by: Petri Dish Buildbot Petri-Dish: Peter Wu <peter@lekensteyn.nl> Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'wsutil/file_util.c')
-rw-r--r--wsutil/file_util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/wsutil/file_util.c b/wsutil/file_util.c
index 745e2f3b43..a8a2a6bd2a 100644
--- a/wsutil/file_util.c
+++ b/wsutil/file_util.c
@@ -57,6 +57,7 @@
#include <stdlib.h>
#include "file_util.h"
+#include "ws_attributes.h"
static gchar *program_path = NULL;
static gchar *system_path = NULL;
@@ -189,7 +190,7 @@ ws_stdio_rename (const gchar *oldfilename, const gchar *newfilename)
* Since: 2.6
*/
int
-ws_stdio_mkdir (const gchar *filename, int mode)
+ws_stdio_mkdir (const gchar *filename, int mode _U_)
{
wchar_t *wfilename = g_utf8_to_utf16 (filename, -1, NULL, NULL, NULL);
int retval;