Project

General

Profile

Bug #53251

compiler warning about deprecated fmt::format_to()

Added by Casey Bodley over 2 years ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
low-hanging-fruit
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Building CXX object src/mon/CMakeFiles/mon.dir/LogMonitor.cc.o
/home/cbodley/ceph/src/mon/LogMonitor.cc: In member function ‘void LogMonitor::log_external(const LogEntry&)’:
/home/cbodley/ceph/src/mon/LogMonitor.cc:414:21: warning: ‘fmt::v7::appender fmt::v7::format_to(fmt::v7::basic_memory_buffer<char, SIZE, Allocator>&, fmt::v7::format_string<T ...>, T&& ...) [with T = {const LogEntry&}; long unsigned int SIZE = 500; Allocator = std::allocator<char>; fmt::v7::format_string<T ...> = fmt::v7::basic_format_string<char, const LogEntry&>]’ is deprecated [-Wdeprecated-declarations]
  414 |       fmt::format_to(file_log_buffer, "{}\n", le);
      |       ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/cbodley/ceph/src/mon/LogMonitor.h:21,
                 from /home/cbodley/ceph/src/mon/LogMonitor.cc:48:
/home/cbodley/ceph/src/fmt/include/fmt/format.h:2787:21: note: declared here
 2787 | FMT_DEPRECATED auto format_to(basic_memory_buffer<char, SIZE, Allocator>& buf,
      |                     ^~~~~~~~~

History

#1 Updated by Neha Ojha over 2 years ago

  • Tags set to low-hanging-fruit

#2 Updated by Laura Flores over 1 year ago

  • Tags set to low-hanging-fruit

#3 Updated by Laura Flores over 1 year ago

Check by running `ninja mon $(nproc)` under the ceph/build directory

#4 Updated by Laura Flores 9 months ago

  • Tags changed from low-hanging-fruit to low-hanging-fruit, open-source-day

#5 Updated by Laura Flores 7 months ago

  • Status changed from New to Closed

Doesn't seem relevant anymore based on the latest main SHA (01ef9e5e91e73422cf11f9b49d06815e4ed75c0d).

(I ran `ninja mon` on centos 8 and didn't see any warnings).

Also available in: Atom PDF