From 706c9f2aa50558ca0acffb392f85cd278a8a7adc Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Fri, 12 Jan 2018 12:22:28 +0100 Subject: [PATCH] Fixup 27eb415d: do not define mymkdir() when it is not used. Pleases coverity. --- src/support/FileName.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/support/FileName.cpp b/src/support/FileName.cpp index f9a6f7eaf1..219a9e5fd8 100644 --- a/src/support/FileName.cpp +++ b/src/support/FileName.cpp @@ -664,6 +664,7 @@ bool FileName::destroyDirectory() const // Only used in non Win32 platforms +#ifndef Q_OS_WIN32 static int mymkdir(char const * pathname, unsigned long int mode) { // FIXME: why don't we have mode_t in lyx::mkdir prototype ?? @@ -686,10 +687,8 @@ static int mymkdir(char const * pathname, unsigned long int mode) #else # error "Don't know how to create a directory on this system." #endif - // squash warnings - (void) mode; - (void) pathname; } +#endif bool FileName::createDirectory(int permission) const -- 2.39.2