summaryrefslogtreecommitdiff
path: root/base/files
diff options
context:
space:
mode:
Diffstat (limited to 'base/files')
-rw-r--r--base/files/dir_reader_fallback.h2
-rw-r--r--base/files/file_path.cc3
-rw-r--r--base/files/file_util_posix.cc4
3 files changed, 2 insertions, 7 deletions
diff --git a/base/files/dir_reader_fallback.h b/base/files/dir_reader_fallback.h
index 4bc199a922..d44c2279e4 100644
--- a/base/files/dir_reader_fallback.h
+++ b/base/files/dir_reader_fallback.h
@@ -11,7 +11,7 @@ class DirReaderFallback {
public:
// Open a directory. If |IsValid| is true, then |Next| can be called to start
// the iteration at the beginning of the directory.
- explicit DirReaderFallback(const char* /* directory_path */) {}
+ explicit DirReaderFallback(const char* directory_path) {}
// After construction, IsValid returns true iff the directory was
// successfully opened.
diff --git a/base/files/file_path.cc b/base/files/file_path.cc
index 9f67f9bc49..8f7fcc2c58 100644
--- a/base/files/file_path.cc
+++ b/base/files/file_path.cc
@@ -53,8 +53,6 @@ StringPieceType::size_type FindDriveLetter(StringPieceType path) {
(path[0] >= L'a' && path[0] <= L'z'))) {
return 1;
}
-#else
- (void)path; // Avoid an unused warning.
#endif // FILE_PATH_USES_DRIVE_LETTERS
return StringType::npos;
}
@@ -1328,7 +1326,6 @@ FilePath FilePath::NormalizePathSeparatorsTo(CharType separator) const {
}
return FilePath(copy);
#else
- (void)separator; // Avoid an unused warning.
return *this;
#endif
}
diff --git a/base/files/file_util_posix.cc b/base/files/file_util_posix.cc
index a03ca8d8d8..3501e241e9 100644
--- a/base/files/file_util_posix.cc
+++ b/base/files/file_util_posix.cc
@@ -628,7 +628,7 @@ bool CreateTemporaryDirInDir(const FilePath& base_dir,
return CreateTemporaryDirInDirImpl(base_dir, mkdtemp_template, new_dir);
}
-bool CreateNewTempDirectory(const FilePath::StringType& /*prefix*/,
+bool CreateNewTempDirectory(const FilePath::StringType& prefix,
FilePath* new_temp_path) {
FilePath tmpdir;
if (!GetTempDir(&tmpdir))
@@ -934,8 +934,6 @@ bool GetShmemTempDir(bool executable, FilePath* path) {
*path = FilePath("/dev/shm");
return true;
}
-#else
- (void)executable; // Avoid unused warning when !defined(OS_LINUX).
#endif
return GetTempDir(path);
}