1
0
mirror of https://github.com/upx/upx synced 2025-10-05 19:20:23 +08:00

Avoid warnings.

committer: mfx <mfx> 1119613856 +0000
This commit is contained in:
Markus F.X.J. Oberhumer 2005-06-24 11:50:56 +00:00
parent 6b7c7f755c
commit 3e785008d3
2 changed files with 4 additions and 1 deletions

View File

@ -40,6 +40,8 @@ void File::chmod(const char *name, int mode)
#if defined(HAVE_CHMOD) #if defined(HAVE_CHMOD)
if (::chmod(name,mode) != 0) if (::chmod(name,mode) != 0)
throwIOException(name,errno); throwIOException(name,errno);
#else
UNUSED(name); UNUSED(mode);
#endif #endif
} }

View File

@ -68,7 +68,7 @@ void do_one_file(const char *iname, char *oname)
#else #else
int r = stat(iname,&st); int r = stat(iname,&st);
#endif #endif
bool need_chmod = true; bool need_chmod = true; UNUSED(need_chmod);
if (r == -1) if (r == -1)
throw FileNotFoundException(iname); throw FileNotFoundException(iname);
@ -220,6 +220,7 @@ void do_one_file(const char *iname, char *oname)
{ {
oname[0] = 0; oname[0] = 0;
const char *name = opt->output_name ? opt->output_name : iname; const char *name = opt->output_name ? opt->output_name : iname;
UNUSED(name);
#if defined(USE_UTIME) #if defined(USE_UTIME)
// copy time stamp // copy time stamp
struct utimbuf u; struct utimbuf u;