From af8c23d24e71f911ed6db6026c424b98fb538e36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Ho=C5=A1ek?= Date: Sat, 30 Jun 2012 20:16:58 +0200 Subject: [PATCH] HLExtract: handle unused parameters --- HLExtract/Main.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/HLExtract/Main.c b/HLExtract/Main.c index 09e45a3..94e1bee 100644 --- a/HLExtract/Main.c +++ b/HLExtract/Main.c @@ -50,10 +50,12 @@ #ifdef _WIN32 # define WIN32_LEAN_AND_MEAN +# define UNUSED # include #else # include # define MAX_PATH PATH_MAX +# define UNUSED __attribute__((__unused__)) # define FOREGROUND_BLUE 0x0001 # define FOREGROUND_GREEN 0x0002 @@ -569,6 +571,8 @@ hlVoid SetColor(hlUInt16 uiColor) } SetConsoleTextAttribute(Handle, uiColor); +#else + (void)uiColor; #endif } @@ -730,7 +734,7 @@ hlVoid ExtractItemStartCallback(HLDirectoryItem *pItem) } } -hlVoid FileProgressCallback(HLDirectoryItem *pFile, hlUInt uiBytesExtracted, hlUInt uiBytesTotal, hlBool *pCancel) +hlVoid FileProgressCallback(HLDirectoryItem *pFile UNUSED, hlUInt uiBytesExtracted, hlUInt uiBytesTotal, hlBool *pCancel UNUSED) { ProgressUpdate((hlULongLong)uiBytesExtracted, (hlULongLong)uiBytesTotal); } @@ -789,7 +793,7 @@ hlVoid ExtractItemEndCallback(HLDirectoryItem *pItem, hlBool bSuccess) } } -hlVoid DefragmentProgressCallback(HLDirectoryItem *pFile, hlUInt uiFilesDefragmented, hlUInt uiFilesTotal, hlULongLong uiBytesDefragmented, hlULongLong uiBytesTotal, hlBool *pCancel) +hlVoid DefragmentProgressCallback(HLDirectoryItem *pFile UNUSED, hlUInt uiFilesDefragmented UNUSED, hlUInt uiFilesTotal UNUSED, hlULongLong uiBytesDefragmented, hlULongLong uiBytesTotal, hlBool *pCancel UNUSED) { ProgressUpdate(uiBytesDefragmented, uiBytesTotal); }