From 3e785008d3738167160d2edf5356e87d4deb061f Mon Sep 17 00:00:00 2001 From: "Markus F.X.J. Oberhumer" Date: Fri, 24 Jun 2005 11:50:56 +0000 Subject: [PATCH] Avoid warnings. committer: mfx 1119613856 +0000 --- src/file.cpp | 2 ++ src/work.cpp | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/file.cpp b/src/file.cpp index ba703937..7528b8e4 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -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 } diff --git a/src/work.cpp b/src/work.cpp index bf30e366..c7b7dd3d 100644 --- a/src/work.cpp +++ b/src/work.cpp @@ -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;