Project

General

Profile

Actions

Bug #22869

closed

compiling Client.cc generate warnings

Added by Jos Collin about 6 years ago. Updated about 6 years ago.

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

0%

Source:
Community (dev)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

[ 2%] Building CXX object src/client/CMakeFiles/client.dir/Client.cc.o
In file included from /home/jcollin/workspace/ceph/src/messages/MClientReconnect.h:19,
from /home/jcollin/workspace/ceph/src/client/Client.cc:50:
/home/jcollin/workspace/ceph/src/mds/mdstypes.h: In constructor ‘inode_t::inode_t()’:
/home/jcollin/workspace/ceph/src/mds/mdstypes.h:539:36: warning: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct quota_info_t’; use assignment or value-initialization instead [-Wclass-memaccess]
memset(&quota, 0, sizeof(quota));
^
/home/jcollin/workspace/ceph/src/mds/mdstypes.h:316:8: note: ‘struct quota_info_t’ declared here
struct quota_info_t
^~~~~~~~~~
In file included from /home/jcollin/workspace/ceph/src/client/Client.cc:53:
/home/jcollin/workspace/ceph/src/messages/MClientReply.h: In member function ‘void InodeStat::decode(ceph::buffer::list::iterator&, uint64_t)’:
/home/jcollin/workspace/ceph/src/messages/MClientReply.h:190:38: warning: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct quota_info_t’; use assignment or value-initialization instead [-Wclass-memaccess]
memset(&quota, 0, sizeof(quota));
^
In file included from /home/jcollin/workspace/ceph/src/messages/MClientReconnect.h:19,
from /home/jcollin/workspace/ceph/src/client/Client.cc:50:
/home/jcollin/workspace/ceph/src/mds/mdstypes.h:316:8: note: ‘struct quota_info_t’ declared here
struct quota_info_t
^~~~~~~~~~
In file included from /home/jcollin/workspace/ceph/src/osd/OSDMap.h:28,
from /home/jcollin/workspace/ceph/src/messages/MOSDMap.h:20,
from /home/jcollin/workspace/ceph/src/client/Client.cc:58:
/home/jcollin/workspace/ceph/src/osd/osd_types.h: In member function ‘void object_stat_sum_t::clear()’:
/home/jcollin/workspace/ceph/src/osd/osd_types.h:1811:34: warning: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct object_stat_sum_t’; use assignment or value-initialization instead [-Wclass-memaccess]
memset(this, 0, sizeof(this));
^
/home/jcollin/workspace/ceph/src/osd/osd_types.h:1641:8: note: ‘struct object_stat_sum_t’ declared here
struct object_stat_sum_t {
^~~~~~~~~~~~~~~
In file included from /home/jcollin/workspace/ceph/src/messages/MOSDMap.h:20,
from /home/jcollin/workspace/ceph/src/client/Client.cc:58:
/home/jcollin/workspace/ceph/src/osd/OSDMap.h: In constructor ‘OSDMap::Incremental::Incremental(epoch_t)’:
/home/jcollin/workspace/ceph/src/osd/OSDMap.h:430:36: warning: ‘void
memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct uuid_d’; use assignment or value-initialization instead [-Wclass-memaccess]
memset(&fsid, 0, sizeof(fsid));
^
In file included from /home/jcollin/workspace/ceph/src/include/types.h:21,
from /home/jcollin/workspace/ceph/src/msg/msg_types.h:21,
from /home/jcollin/workspace/ceph/src/common/entity_name.h:20,
from /home/jcollin/workspace/ceph/src/common/config.h:20,
from /home/jcollin/workspace/ceph/src/client/Client.cc:45:
/home/jcollin/workspace/ceph/src/include/uuid.h:16:8: note: ‘struct uuid_d’ declared here
struct uuid_d {
^~~~
In file included from /home/jcollin/workspace/ceph/src/messages/MOSDMap.h:20,
from /home/jcollin/workspace/ceph/src/client/Client.cc:58:
/home/jcollin/workspace/ceph/src/osd/OSDMap.h: In constructor ‘OSDMap::OSDMap()’:
/home/jcollin/workspace/ceph/src/osd/OSDMap.h:594:34: warning: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct uuid_d’; use assignment or value-initialization instead [-Wclass-memaccess]
memset(&fsid, 0, sizeof(fsid));
^
In file included from /home/jcollin/workspace/ceph/src/include/types.h:21,
from /home/jcollin/workspace/ceph/src/msg/msg_types.h:21,
from /home/jcollin/workspace/ceph/src/common/entity_name.h:20,
from /home/jcollin/workspace/ceph/src/common/config.h:20,
from /home/jcollin/workspace/ceph/src/client/Client.cc:45:
/home/jcollin/workspace/ceph/src/include/uuid.h:16:8: note: ‘struct uuid_d’ declared here
struct uuid_d {
^~~~
In file included from /home/jcollin/workspace/ceph/src/client/Client.cc:59:
/home/jcollin/workspace/ceph/src/messages/MClientQuota.h: In constructor ‘MClientQuota::MClientQuota()’:
/home/jcollin/workspace/ceph/src/messages/MClientQuota.h:15:36: warning: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct nest_info_t’; use assignment or value-initialization instead [-Wclass-memaccess]
memset(&rstat, 0, sizeof(rstat));
^
In file included from /home/jcollin/workspace/ceph/src/messages/MClientReconnect.h:19,
from /home/jcollin/workspace/ceph/src/client/Client.cc:50:
/home/jcollin/workspace/ceph/src/mds/mdstypes.h:222:8: note: ‘struct nest_info_t’ declared here
struct nest_info_t : public scatter_info_t {
^~~~~~~~~
In file included from /home/jcollin/workspace/ceph/src/client/Client.cc:59:
/home/jcollin/workspace/ceph/src/messages/MClientQuota.h:16:36: warning: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct quota_info_t’; use assignment or value-initialization instead [-Wclass-memaccess]
memset(&quota, 0, sizeof(quota));
^
In file included from /home/jcollin/workspace/ceph/src/messages/MClientReconnect.h:19,
from /home/jcollin/workspace/ceph/src/client/Client.cc:50:
/home/jcollin/workspace/ceph/src/mds/mdstypes.h:316:8: note: ‘struct quota_info_t’ declared here
struct quota_info_t
^~~~~~~~~~
In file included from /home/jcollin/workspace/ceph/src/mon/MonClient.h:22,
from /home/jcollin/workspace/ceph/src/client/Client.cc:64:
/home/jcollin/workspace/ceph/src/mon/MonMap.h: In constructor ‘MonMap::MonMap()’:
/home/jcollin/workspace/ceph/src/mon/MonMap.h:121:34: warning: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct uuid_d’; use assignment or value-initialization instead [-Wclass-memaccess]
memset(&fsid, 0, sizeof(fsid));
^
In file included from /home/jcollin/workspace/ceph/src/include/types.h:21,
from /home/jcollin/workspace/ceph/src/msg/msg_types.h:21,
from /home/jcollin/workspace/ceph/src/common/entity_name.h:20,
from /home/jcollin/workspace/ceph/src/common/config.h:20,
from /home/jcollin/workspace/ceph/src/client/Client.cc:45:
/home/jcollin/workspace/ceph/src/include/uuid.h:16:8: note: ‘struct uuid_d’ declared here
struct uuid_d {
^~~~
In file included from /home/jcollin/workspace/ceph/src/client/Client.cc:84:
/home/jcollin/workspace/ceph/src/client/Inode.h: In constructor ‘Inode::Inode(Client*, vinodeno_t, file_layout_t*)’:
/home/jcollin/workspace/ceph/src/client/Inode.h:278:36: warning: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct quota_info_t’; use assignment or value-initialization instead [-Wclass-memaccess]
memset(&quota, 0, sizeof(quota));
^
In file included from /home/jcollin/workspace/ceph/src/messages/MClientReconnect.h:19,
from /home/jcollin/workspace/ceph/src/client/Client.cc:50:
/home/jcollin/workspace/ceph/src/mds/mdstypes.h:316:8: note: ‘struct quota_info_t’ declared here
struct quota_info_t
^~~~~~~~~~
/home/jcollin/workspace/ceph/src/client/Client.cc: In member function ‘int Client::ll_delegation(Fh*, unsigned int, ceph_deleg_cb_t, void*)’:
/home/jcollin/workspace/ceph/src/client/Client.cc:13177:19: warning: catching polymorphic type ‘class std::bad_alloc’ by value [-Wcatch-value=]
} catch (std::bad_alloc) {
^~~~~~~

Actions

Also available in: Atom PDF