diff options
-rw-r--r-- | base/lazy_instance.h | 2 | ||||
-rw-r--r-- | base/singleton.h | 2 | ||||
-rw-r--r-- | base/threading/platform_thread_posix.cc | 2 |
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 |