summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-25 02:18:13 +0000
committerjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-25 02:18:13 +0000
commit6ebed4ca8ba16c970861541e67cec3b555a27d30 (patch)
tree22b2fa7f1826160a89ed1e3a4a7e740f79639564 /base
parentdb5021e9f602cfcda606f06309d12930f9a0d527 (diff)
downloadchromium_src-6ebed4ca8ba16c970861541e67cec3b555a27d30.zip
chromium_src-6ebed4ca8ba16c970861541e67cec3b555a27d30.tar.gz
chromium_src-6ebed4ca8ba16c970861541e67cec3b555a27d30.tar.bz2
Comment out unused parameter names in function definitions,
to adhere to the C++ Style Guide. Landing for roubert@google.com, original review http://codereview.chromium.org/6485028/ BUG=none TEST=none Review URL: http://codereview.chromium.org/6580049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76017 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/lazy_instance.h2
-rw-r--r--base/singleton.h2
-rw-r--r--base/threading/platform_thread_posix.cc2
3 files changed, 3 insertions, 3 deletions
diff --git a/base/lazy_instance.h b/base/lazy_instance.h
index e50902d..a22dbf3 100644
--- a/base/lazy_instance.h
+++ b/base/lazy_instance.h
@@ -88,7 +88,7 @@ class LazyInstanceHelper {
STATE_CREATED = 2
};
- explicit LazyInstanceHelper(LinkerInitialized x) { /* state_ is 0 */ }
+ explicit LazyInstanceHelper(LinkerInitialized /*unused*/) {/* state_ is 0 */}
// Declaring a destructor (even if it's empty) will cause MSVC to register a
// static initializer to register the empty destructor with atexit().
diff --git a/base/singleton.h b/base/singleton.h
index 5bd5c35..0fe5e27 100644
--- a/base/singleton.h
+++ b/base/singleton.h
@@ -254,7 +254,7 @@ class Singleton {
// Adapter function for use with AtExit(). This should be called single
// threaded, so don't use atomic operations.
// Calling OnExit while singleton is in use by other threads is a mistake.
- static void OnExit(void* unused) {
+ static void OnExit(void* /*unused*/) {
// AtExit should only ever be register after the singleton instance was
// created. We should only ever get here with a valid instance_ pointer.
Traits::Delete(
diff --git a/base/threading/platform_thread_posix.cc b/base/threading/platform_thread_posix.cc
index 8452909..103145a 100644
--- a/base/threading/platform_thread_posix.cc
+++ b/base/threading/platform_thread_posix.cc
@@ -189,7 +189,7 @@ void PlatformThread::SetName(const char* name) {
// Mac is implemented in platform_thread_mac.mm.
#else
// static
-void PlatformThread::SetName(const char* name) {
+void PlatformThread::SetName(const char* /*name*/) {
// Leave it unimplemented.
// (This should be relatively simple to implement for the BSDs; I