helpers: silence compiler warning

This commit is contained in:
Stefan Seyfried
2013-03-24 19:26:50 +01:00
parent fa1b81ccf3
commit db802eb60a

View File

@@ -438,6 +438,7 @@ bool CFileHelpers::copyDir(const char *Src, const char *Dst, bool backupMode)
// is file // is file
else if (S_ISREG(FileInfo.st_mode)) { else if (S_ISREG(FileInfo.st_mode)) {
std::string save = ""; std::string save = "";
(void)backupMode; /* squelch unused parameter warning */
#if ENABLE_EXTUPDATE #if ENABLE_EXTUPDATE
if (backupMode && (CExtUpdate::getInstance()->isBlacklistEntry(srcPath))) if (backupMode && (CExtUpdate::getInstance()->isBlacklistEntry(srcPath)))
save = ".save"; save = ".save";