Fix compiler warnings in libbrillo
Bug: 26379664
Test: Compiles
Change-Id: I67658ba9ceb8b769c97f0c345f7711bc96d27a84
diff --git a/brillo/streams/tls_stream.cc b/brillo/streams/tls_stream.cc
index f82db1a..ac116a4 100644
--- a/brillo/streams/tls_stream.cc
+++ b/brillo/streams/tls_stream.cc
@@ -24,7 +24,7 @@
// SSL info callback which is called by OpenSSL when we enable logging level of
// at least 3. This logs the information about the internal TLS handshake.
-void TlsInfoCallback(const SSL* ssl, int where, int ret) {
+void TlsInfoCallback(const SSL* /* ssl */, int where, int ret) {
std::string reason;
std::vector<std::string> info;
if (where & SSL_CB_LOOP)
@@ -400,7 +400,7 @@
void TlsStream::TlsStreamImpl::RetryHandshake(
const base::Closure& success_callback,
const Stream::ErrorCallback& error_callback,
- Stream::AccessMode mode) {
+ Stream::AccessMode /* mode */) {
VLOG(1) << "Retrying TLS handshake";
DoHandshake(success_callback, error_callback);
}
@@ -475,13 +475,13 @@
return impl_ ? true : false;
}
-bool TlsStream::SetSizeBlocking(uint64_t size, ErrorPtr* error) {
+bool TlsStream::SetSizeBlocking(uint64_t /* size */, ErrorPtr* error) {
return stream_utils::ErrorOperationNotSupported(FROM_HERE, error);
}
-bool TlsStream::Seek(int64_t offset,
- Whence whence,
- uint64_t* new_position,
+bool TlsStream::Seek(int64_t /* offset */,
+ Whence /* whence */,
+ uint64_t* /* new_position*/,
ErrorPtr* error) {
return stream_utils::ErrorOperationNotSupported(FROM_HERE, error);
}