Actions
Bug #72411
closederror: ‘millisecs’ may be used uninitialized [-Werror=maybe-uninitialized]
Status:
Resolved
Priority:
Normal
Assignee:
Category:
Code Hygiene
Target version:
% Done:
0%
Source:
Development
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
v20.3.0-2893-gcdf32a8868
Released In:
Upkeep Timestamp:
2025-09-09T06:44:00+00:00
Description
/usr/lib64/ccache/c++ -DBOOST_ASIO_DISABLE_THREAD_KEYWORD_EXTENSION -DBOOST_ASIO_HAS_IO_URING -DBOOST_ASIO_NO_TS_EXECUTORS -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_REENTRANT -D_THREAD_SAFE -D__CEPH__ -D__STDC_FORMAT_MACROS -D__linux__ -I/auto/home/rodried/git/ceph/ceph-werror/cmake-build-relwithdebinfo/src/include -I/auto/home/rodried/git/ceph/ceph-werror/src -isystem /auto/home/rodried/git/ceph/ceph-werror/cmake-build-relwithdebinfo/boost/include -isystem /auto/home/rodried/git/ceph/ceph-werror/cmake-build-relwithdebinfo/include -isystem /auto/home/rodried/git/ceph/ceph-werror/src/jaegertracing/opentelemetry-cpp/api/include -isystem /auto/home/rodried/git/ceph/ceph-werror/src/jaegertracing/opentelemetry-cpp/exporters/jaeger/include -isystem /auto/home/rodried/git/ceph/ceph-werror/src/jaegertracing/opentelemetry-cpp/ext/include -isystem /auto/home/rodried/git/ceph/ceph-werror/src/jaegertracing/opentelemetry-cpp/sdk/include -isystem /auto/home/rodried/git/ceph/ceph-werror/src/xxHash -isystem /auto/home/rodried/git/ceph/ceph-werror/src/fmt/include -isystem /auto/home/rodried/git/ceph/ceph-werror/cmake-build-relwithdebinfo/src/breakpad_project-prefix/include -isystem /auto/home/rodried/git/ceph/ceph-werror/cmake-build-relwithdebinfo/src/breakpad_project-prefix/include/breakpad -O2 -g -DNDEBUG -std=c++23 -fPIC -fdiagnostics-color=always -U_FORTIFY_SOURCE -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -Wall -fno-strict-aliasing -fsigned-char -Wtype-limits -Wignored-qualifiers -Wpointer-arith -Werror=format-security -Winit-self -Wno-unknown-pragmas -Wnon-virtual-dtor -Wno-ignored-qualifiers -Werror -ftemplate-depth-1024 -DBOOST_ALLOW_DEPRECATED_HEADERS -Wpessimizing-move -Wredundant-move -Wstrict-null-sentinel -Woverloaded-virtual -fstack-protector-strong -fdiagnostics-color=auto -MD -MT src/mds/CMakeFiles/mds.dir/MDSDaemon.cc.o -MF src/mds/CMakeFiles/mds.dir/MDSDaemon.cc.o.d -o src/mds/CMakeFiles/mds.dir/MDSDaemon.cc.o -c /auto/home/rodried/git/ceph/ceph-werror/src/mds/MDSDaemon.cc
In file included from /usr/include/c++/14/istream:41,
from /auto/home/rodried/git/ceph/ceph-werror/cmake-build-relwithdebinfo/boost/include/boost/optional/optional_io.hpp:16,
from /auto/home/rodried/git/ceph/ceph-werror/src/include/encoding.h:30,
from /auto/home/rodried/git/ceph/ceph-werror/src/include/uuid.h:9,
from /auto/home/rodried/git/ceph/ceph-werror/src/include/types.h:21,
from /auto/home/rodried/git/ceph/ceph-werror/src/common/LogEntry.h:20,
from /auto/home/rodried/git/ceph/ceph-werror/src/common/LogClient.h:23,
from /auto/home/rodried/git/ceph/ceph-werror/src/mds/MDSDaemon.h:21,
from /auto/home/rodried/git/ceph/ceph-werror/src/mds/MDSDaemon.cc:15:
In member function ‘std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>]’,
inlined from ‘void MDSDaemon::asok_command(std::string_view, const cmdmap_t&, ceph::Formatter*, const ceph::bufferlist&, asok_finisher)’ at /auto/home/rodried/git/ceph/ceph-werror/src/mds/MDSDaemon.cc:169:55:
/usr/include/c++/14/ostream:175:25: error: ‘millisecs’ may be used uninitialized [-Werror=maybe-uninitialized]
175 | { return _M_insert(__n); }
| ~~~~~~~~~^~~~~
/auto/home/rodried/git/ceph/ceph-werror/src/mds/MDSDaemon.cc: In member function ‘void MDSDaemon::asok_command(std::string_view, const cmdmap_t&, ceph::Formatter*, const ceph::bufferlist&, asok_finisher)’:
/auto/home/rodried/git/ceph/ceph-werror/src/mds/MDSDaemon.cc:167:13: note: ‘millisecs’ was declared here
167 | int64_t millisecs;
| ^~~~~~~~~
Updated by Venky Shankar 7 months ago
- Project changed from Ceph to CephFS
- Category set to Code Hygiene
- Status changed from New to Fix Under Review
- Target version set to v21.0.0
- Source set to Development
- Pull request ID set to 64958
Updated by Venky Shankar 6 months ago
- Status changed from Fix Under Review to Pending Backport
Updated by Upkeep Bot 6 months ago
- Status changed from Pending Backport to Resolved
- Merge Commit set to cdf32a8868f7999c7875352c57d964de9a27484a
- Fixed In set to v20.3.0-2893-gcdf32a8868
- Upkeep Timestamp set to 2025-09-09T06:44:00+00:00
Actions