Skip to content

Commit

Permalink
Fix trivial compiler warnings (bloomberg#339)
Browse files Browse the repository at this point in the history
* Fix trivial compiler warnings

- Unused variables
- Missing newlines

Signed-off-by: Christopher Beard <[email protected]>

* Fix FileManagerImpl class name comment header

Signed-off-by: Christopher Beard <[email protected]>

---------

Signed-off-by: Christopher Beard <[email protected]>
  • Loading branch information
chrisbeard authored and alexander-e1off committed Oct 24, 2024
1 parent a07a41d commit 24fd022
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void closeLedger(mqbsl::Ledger* ledger)
} // close unnamed namespace

// =====================
// class FileManagerReal
// class FileManagerImpl
// =====================

// CREATORS
Expand Down Expand Up @@ -220,7 +220,7 @@ QueueMap FileManagerImpl::buildQueueMap(const bsl::string& cslFile,
}

// ==================================
// class FileManagerReal::FileHandler
// class FileManagerImpl::FileHandler
// ==================================

template <typename ITER>
Expand Down
2 changes: 0 additions & 2 deletions src/applications/bmqtool/m_bmqtool_interactive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ namespace m_bmqtool {

namespace {

const char k_LOG_CATEGORY[] = "APPLICATION";

/// Print to stdout the specified `message` prefixed by the specified
/// `prefix`.
void printMessage(bsl::ostream& out, int index, const bmqa::Message& message)
Expand Down
2 changes: 1 addition & 1 deletion src/groups/bmq/bmqp/bmqp_compression.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,4 @@ struct Compression_Impl {
} // close package namespace
} // close enterprise namespace

#endif
#endif
4 changes: 0 additions & 4 deletions src/groups/mqb/mqbblp/mqbblp_clustercatalog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@
namespace BloombergLP {
namespace mqbblp {

namespace {
const char k_LOG_CATEGORY[] = "MQBBLP.CLUSTERCATALOG";
} // close unnamed namespace

// --------------------
// class ClusterCatalog
// --------------------
Expand Down
2 changes: 1 addition & 1 deletion src/groups/mqb/mqbc/mqbc_partitionfsmobserver.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ class PartitionFSMObserver {
} // close package namespace
} // close enterprise namespace

#endif
#endif
11 changes: 4 additions & 7 deletions src/groups/mwc/mwctsk/mwctsk_logcontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,10 @@ void printCategoryWithDelimiter(const bsl::shared_ptr<bsl::ostream>& os,
*os << "\n";
}

static void
bslsLogHandler(BSLS_ANNOTATION_UNUSED bsls::LogSeverity::Enum severity,
const char* file,
int line,
const char* message)
static void bslsLogHandler(bsls::LogSeverity::Enum severity,
const char* file,
int line,
const char* message)
{
// Custom message handler for bsls::Log. Redirect the specified
// 'message', the specified 'file' and the specified 'line' to
Expand Down Expand Up @@ -122,8 +121,6 @@ LogControllerConfig::balToBslsLogLevel(ball::Severity::Level level)
case ball::Severity::e_TRACE: return bsls::LogSeverity::e_TRACE;
default: return bsls::LogSeverity::e_ERROR;
};

return bsls::LogSeverity::e_ERROR;
}

LogControllerConfig::CategoryProperties::CategoryProperties(
Expand Down

0 comments on commit 24fd022

Please sign in to comment.