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:
parent
6b7c7f755c
commit
3e785008d3
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user