File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -155,7 +155,8 @@ size_t QuoteManager::removeQuotesByAuthor(const std::string &author) {
155155
156156#ifdef DEBUG
157157void 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 "e : quotes_) {
160161 std::cout << quote.toString (true ) << std::endl;
161162 }
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments