View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0032899 | Open CASCADE | PRODUCTS:Coding | public | 2022-04-01 20:10 | 2022-04-02 11:08 |
Reporter | bugmaster | Assigned To | kgv | ||
Priority | normal | Severity | minor | ||
Status | new | Resolution | open | ||
Platform | Linux | OS | Ubuntu 20.04 | ||
Product Version | 7.6.0 | ||||
Target Version | 7.7.0 | ||||
Summary | 0032899: Coding Rules - Warning on Ubuntu 20.04 | ||||
Description | [ 21%] Building CXX object src/TKXT/CMakeFiles/TKXT.dir/__/XtGeom/XtGeom_SPCurve.cxx.o Scanning dependencies of target TKMeshDecimTest In file included from /disk1/builds/CR0-WEEK-10/Ubuntu-2004-64-opt-c11/Products/inc/SparsePP.hxx:1, from /disk1/builds/CR0-WEEK-10/Products_SRC/src/RWPointCloud/RWPointCloud_PointFilter.hxx:32, from /disk1/builds/CR0-WEEK-10/Ubuntu-2004-64-opt-c11/Products/inc/RWPointCloud_PointFilter.hxx:1, from /disk1/builds/CR0-WEEK-10/Products_SRC/src/RWPointCloud/RWPointCloud_PointFilter.cxx:18: /disk1/builds/CR0-WEEK-10/Products_SRC/src/RWPointCloud/SparsePP.hxx: In instantiation of 'void spp::sparsetable<T, Alloc>::resize(spp::sparsetable<T, Alloc>::size_type) [with T = std::pair<long int, std::vector<NCollection_Vec3<float>, std::allocator<NCollection_Vec3<float> > > >; Alloc = spp::libc_allocator_with_realloc<std::pair<long int, std::vector<NCollection_Vec3<float>, std::allocator<NCollection_Vec3<float> > > > >; spp::sparsetable<T, Alloc>::size_type = long unsigned int]': /disk1/builds/CR0-WEEK-10/Products_SRC/src/RWPointCloud/SparsePP.hxx:4138:25: required from 'void spp::sparse_hashtable<Value, Key, HashFcn, ExtractKey, SetKey, EqualKey, Alloc>::_move_from(spp::sparse_hashtable<Value, Key, HashFcn, ExtractKey, SetKey, EqualKey, Alloc>::MoveDontCopyT, spp::sparse_hashtable<Value, Key, HashFcn, ExtractKey, SetKey, EqualKey, Alloc>&, spp::sparse_hashtable<Value, Key, HashFcn, ExtractKey, SetKey, EqualKey, Alloc>::size_type) [with Value = std::pair<long int, std::vector<NCollection_Vec3<float>, std::allocator<NCollection_Vec3<float> > > >; Key = long int; HashFcn = spp::spp_hash<long int>; ExtractKey = spp::sparse_hash_map<long int, std::vector<NCollection_Vec3<float>, std::allocator<NCollection_Vec3<float> > > >::SelectKey; SetKey = spp::sparse_hash_map<long int, std::vector<NCollection_Vec3<float>, std::allocator<NCollection_Vec3<float> > > >::SetKey; EqualKey = std::equal_to<long int>; Alloc = spp::libc_allocator_with_realloc<std::pair<const long int, std::vector<NCollection_Vec3<float>, std::allocator<NCollection_Vec3<float> > > > >; spp::sparse_hashtable<Value, Key, HashFcn, ExtractKey, SetKey, EqualKey, Alloc>::size_type = long unsigned int]' /disk1/builds/CR0-WEEK-10/Products_SRC/src/RWPointCloud/SparsePP.hxx:4285:9: required from 'spp::sparse_hashtable<Value, Key, HashFcn, ExtractKey, SetKey, EqualKey, Alloc>::sparse_hashtable(spp::sparse_hashtable<Value, Key, HashFcn, ExtractKey, SetKey, EqualKey, Alloc>::MoveDontCopyT, spp::sparse_hashtable<Value, Key, HashFcn, ExtractKey, SetKey, EqualKey, Alloc>&, spp::sparse_hashtable<Value, Key, HashFcn, ExtractKey, SetKey, EqualKey, Alloc>::size_type) [with Value = std::pair<long int, std::vector<NCollection_Vec3<float>, std::allocator<NCollection_Vec3<float> > > >; Key = long int; HashFcn = spp::spp_hash<long int>; ExtractKey = spp::sparse_hash_map<long int, std::vector<NCollection_Vec3<float>, std::allocator<NCollection_Vec3<float> > > >::SelectKey; SetKey = spp::sparse_hash_map<long int, std::vector<NCollection_Vec3<float>, std::allocator<NCollection_Vec3<float> > > >::SetKey; EqualKey = std::equal_to<long int>; Alloc = spp::libc_allocator_with_realloc<std::pair<const long int, std::vector<NCollection_Vec3<float>, std::allocator<NCollection_Vec3<float> > > > >; spp::sparse_hashtable<Value, Key, HashFcn, ExtractKey, SetKey, EqualKey, Alloc>::size_type = long unsigned int]' /disk1/builds/CR0-WEEK-10/Products_SRC/src/RWPointCloud/SparsePP.hxx:4077:26: required from 'bool spp::sparse_hashtable<Value, Key, HashFcn, ExtractKey, SetKey, EqualKey, Alloc>::_resize_delta(spp::sparse_hashtable<Value, Key, HashFcn, ExtractKey, SetKey, EqualKey, Alloc>::size_type) [with Value = std::pair<long int, std::vector<NCollection_Vec3<float>, std::allocator<NCollection_Vec3<float> > > >; Key = long int; HashFcn = spp::spp_hash<long int>; ExtractKey = spp::sparse_hash_map<long int, std::vector<NCollection_Vec3<float>, std::allocator<NCollection_Vec3<float> > > >::SelectKey; SetKey = spp::sparse_hash_map<long int, std::vector<NCollection_Vec3<float>, std::allocator<NCollection_Vec3<float> > > >::SetKey; EqualKey = std::equal_to<long int>; Alloc = spp::libc_allocator_with_realloc<std::pair<const long int, std::vector<NCollection_Vec3<float>, std::allocator<NCollection_Vec3<float> > > > >; spp::sparse_hashtable<Value, Key, HashFcn, ExtractKey, SetKey, EqualKey, Alloc>::size_type = long unsigned int]' /disk1/builds/CR0-WEEK-10/Products_SRC/src/RWPointCloud/SparsePP.hxx:4565:9: required from 'std::pair<typename spp::sparsetable<Value, typename Alloc::rebind<Value>::other>::ne_iterator, bool> spp::sparse_hashtable<Value, Key, HashFcn, ExtractKey, SetKey, EqualKey, Alloc>::insert(spp::sparse_hashtable<Value, Key, HashFcn, ExtractKey, SetKey, EqualKey, Alloc>::const_reference) [with Value = std::pair<long int, std::vector<NCollection_Vec3<float>, std::allocator<NCollection_Vec3<float> > > >; Key = long int; HashFcn = spp::spp_hash<long int>; ExtractKey = spp::sparse_hash_map<long int, std::vector<NCollection_Vec3<float>, std::allocator<NCollection_Vec3<float> > > >::SelectKey; SetKey = spp::sparse_hash_map<long int, std::vector<NCollection_Vec3<float>, std::allocator<NCollection_Vec3<float> > > >::SetKey; EqualKey = std::equal_to<long int>; Alloc = spp::libc_allocator_with_realloc<std::pair<const long int, std::vector<NCollection_Vec3<float>, std::allocator<NCollection_Vec3<float> > > > >; typename spp::sparsetable<Value, typename Alloc::rebind<Value>::other>::ne_iterator = spp::Two_d_iterator<std::pair<long int, std::vector<NCollection_Vec3<float>, std::allocator<NCollection_Vec3<float> > > >, spp::sparsegroup<std::pair<long int, std::vector<NCollection_Vec3<float>, std::allocator<NCollection_Vec3<float> > > >, spp::libc_allocator_with_realloc<std::pair<long int, std::vector<NCollection_Vec3<float>, std::allocator<NCollection_Vec3<float> > > > > >*, std::pair<const long int, std::vector<NCollection_Vec3<float>, std::allocator<NCollection_Vec3<float> > > >*, std::bidirectional_iterator_tag>; spp::sparse_hashtable<Value, Key, HashFcn, ExtractKey, SetKey, EqualKey, Alloc>::const_reference = const std::pair<const long int, std::vector<NCollection_Vec3<float>, std::allocator<NCollection_Vec3<float> > > >&; spp::sparse_hashtable<Value, Key, HashFcn, ExtractKey, SetKey, EqualKey, Alloc>::value_type = std::pair<const long int, std::vector<NCollection_Vec3<float>, std::allocator<NCollection_Vec3<float> > > >]' /disk1/builds/CR0-WEEK-10/Products_SRC/src/RWPointCloud/SparsePP.hxx:5168:73: required from 'std::pair<typename spp::sparse_hashtable<std::pair<typename spp::remove_const<Key>::type, T>, Key, HashFcn, spp::sparse_hash_map<Key, T, HashFcn, EqualKey, Alloc>::SelectKey, spp::sparse_hash_map<Key, T, HashFcn, EqualKey, Alloc>::SetKey, EqualKey, Alloc>::iterator, bool> spp::sparse_hash_map<Key, T, HashFcn, EqualKey, Alloc>::insert(const value_type&) [with Key = long int; T = std::vector<NCollection_Vec3<float>, std::allocator<NCollection_Vec3<float> > >; HashFcn = spp::spp_hash<long int>; EqualKey = std::equal_to<long int>; Alloc = spp::libc_allocator_with_realloc<std::pair<const long int, std::vector<NCollection_Vec3<float>, std::allocator<NCollection_Vec3<float> > > > >; typename spp::sparse_hashtable<std::pair<typename spp::remove_const<Key>::type, T>, Key, HashFcn, spp::sparse_hash_map<Key, T, HashFcn, EqualKey, Alloc>::SelectKey, spp::sparse_hash_map<Key, T, HashFcn, EqualKey, Alloc>::SetKey, EqualKey, Alloc>::iterator = spp::Two_d_iterator<std::pair<long int, std::vector<NCollection_Vec3<float>, std::allocator<NCollection_Vec3<float> > > >, spp::sparsegroup<std::pair<long int, std::vector<NCollection_Vec3<float>, std::allocator<NCollection_Vec3<float> > > >, spp::libc_allocator_with_realloc<std::pair<long int, std::vector<NCollection_Vec3<float>, std::allocator<NCollection_Vec3<float> > > > > >*, std::pair<const long int, std::vector<NCollection_Vec3<float>, std::allocator<NCollection_Vec3<float> > > >*, std::bidirectional_iterator_tag>; spp::sparse_hash_map<Key, T, HashFcn, EqualKey, Alloc>::value_type = std::pair<const long int, std::vector<NCollection_Vec3<float>, std::allocator<NCollection_Vec3<float> > > >]' /disk1/builds/CR0-WEEK-10/Products_SRC/src/RWPointCloud/RWPointCloud_PointFilter.cxx:177:91: required from here /disk1/builds/CR0-WEEK-10/Products_SRC/src/RWPointCloud/SparsePP.hxx:3363:23: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'spp::sparsetable<std::pair<long int, std::vector<NCollection_Vec3<float>, std::allocator<NCollection_Vec3<float> > > >, spp::libc_allocator_with_realloc<std::pair<long int, std::vector<NCollection_Vec3<float>, std::allocator<NCollection_Vec3<float> > > > > >::group_type' {aka 'class spp::sparsegroup<std::pair<long int, std::vector<NCollection_Vec3<float>, std::allocator<NCollection_Vec3<float> > > >, spp::libc_allocator_with_realloc<std::pair<long int, std::vector<NCollection_Vec3<float>, std::allocator<NCollection_Vec3<float> > > > > >'} with no trivial copy-assignment; use copy-initialization instead [-Wclass-memaccess] 3363 | memcpy(first, _first_group, sizeof(*first) * (std::min)(sz, old_sz)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /disk1/builds/CR0-WEEK-10/Products_SRC/src/RWPointCloud/SparsePP.hxx:2310:7: note: 'spp::sparsetable<std::pair<long int, std::vector<NCollection_Vec3<float>, std::allocator<NCollection_Vec3<float> > > >, spp::libc_allocator_with_realloc<std::pair<long int, std::vector<NCollection_Vec3<float>, std::allocator<NCollection_Vec3<float> > > > > >::group_type' {aka 'class spp::sparsegroup<std::pair<long int, std::vector<NCollection_Vec3<float>, std::allocator<NCollection_Vec3<float> > > >, spp::libc_allocator_with_realloc<std::pair<long int, std::vector<NCollection_Vec3<float>, std::allocator<NCollection_Vec3<float> > > > > >'} declared here 2310 | class sparsegroup | ^~~~~~~~~~~ Warning 3 [ 32%] Building CXX object src/TKShHealingAdv/CMakeFiles/TKShHealingAdv.dir/__/ShapeFixAdv/ShapeFixAdv_Face.cxx.o In file included from /usr/include/gdcm-3.0/gdcmReader.h:17, from /usr/include/gdcm-3.0/gdcmPixmapReader.h:17, from /usr/include/gdcm-3.0/gdcmImageReader.h:17, from /disk1/builds/CR0-WEEK-10/Products_SRC/src/VolumeRender/VolumeRender_DicomReader.cxx:33: /usr/include/gdcm-3.0/gdcmFile.h: In member function 'void gdcm::File::SetHeader(const gdcm::FileMetaInformation&)': /usr/include/gdcm-3.0/gdcmFile.h:54:63: warning: implicitly-declared 'gdcm::FileMetaInformation& gdcm::FileMetaInformation::operator=(const gdcm::FileMetaInformation&)' is deprecated [-Wdeprecated-copy] 54 | void SetHeader( const FileMetaInformation &fmi ) { Header = fmi; } | ^~~ In file included from /usr/include/gdcm-3.0/gdcmFile.h:19, from /usr/include/gdcm-3.0/gdcmReader.h:17, from /usr/include/gdcm-3.0/gdcmPixmapReader.h:17, from /usr/include/gdcm-3.0/gdcmImageReader.h:17, from /disk1/builds/CR0-WEEK-10/Products_SRC/src/VolumeRender/VolumeRender_DicomReader.cxx:33: /usr/include/gdcm-3.0/gdcmFileMetaInformation.h:97:3: note: because 'gdcm::FileMetaInformation' has user-provided 'gdcm::FileMetaInformation::FileMetaInformation(const gdcm::FileMetaInformation&)' 97 | FileMetaInformation(FileMetaInformation const &fmi):DataSet(fmi) | ^~~~~~~~~~~~~~~~~~~ | ||||
Tags | No tags attached. | ||||
Test case number | |||||
Date Modified | Username | Field | Change |
---|---|---|---|
2022-04-01 20:10 | bugmaster | New Issue | |
2022-04-01 20:10 | bugmaster | Assigned To | => kgv |
2022-04-01 20:10 | bugmaster | Relationship added | child of 0032889 |
2022-04-01 20:19 | kgv | Category | OCCT:Coding => PRODUCTS:Coding |
2022-04-01 20:19 | kgv | Product Version | => 7.6.0 |
2022-04-02 11:08 | kgv | Relationship added | parent of 0032900 |