Skip to content

Commit 8ecfd48

Browse files
committed
Fix error context and IP address handling
1 parent 61c5fe7 commit 8ecfd48

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

atom/system/debug/crash_quotes.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ size_t QuoteManager::removeQuotesByAuthor(const std::string &author) {
155155

156156
#ifdef DEBUG
157157
void QuoteManager::displayQuotes() const {
158-
LOG_F(INFO, "Displaying all quotes ({})", quotes_.size());
158+
LOG_F(INFO, "Displaying all quotes (%lu)",
159+
static_cast<unsigned long>(quotes_.size()));
159160
for (const auto &quote : quotes_) {
160161
std::cout << quote.toString(true) << std::endl;
161162
}

atom/web/address/ipv4.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ static WinsockInitializer winsockInit;
4343
/**
4444
* @brief Fast IPv4 validation without regex
4545
*/
46-
auto fastIsValidIPv4(std::string_view address) -> bool {
46+
[[maybe_unused]] auto fastIsValidIPv4(std::string_view address) -> bool {
4747
if (address.empty() || address.length() > 15) {
4848
return false;
4949
}

atom/web/address/ipv6.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ static WinsockInitializer winsockInit;
4545
/**
4646
* @brief Fast IPv6 validation without complex parsing
4747
*/
48-
auto fastIsValidIPv6(std::string_view address) -> bool {
48+
[[maybe_unused]] auto fastIsValidIPv6(std::string_view address) -> bool {
4949
if (address.empty() || address.length() > IPV6_MAX_STRING_LENGTH) {
5050
return false;
5151
}

0 commit comments

Comments
 (0)