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 (::chmod(name,mode) != 0)
throwIOException(name,errno);
#else
UNUSED(name); UNUSED(mode);
#endif
}

View File

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