Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
The fixes required are over the warnings reported with a C++ complier (GCC in this case) compiling with the flags -Wsuggest-override and -Wold-style-cast
The GCC built warnings for both of the flags are as follow:
swc-db/src/cc/include/swcdb/thrift/gen-cpp/Service_types.cpp:3461:42: warning: use of old-style cast to ‘int32_t’ {aka ‘int’} [-Wold-style-cast] 3461 | xfer += oprot->writeI32((int32_t)this->comp); | ^~~~ | ------------------- | static_cast<int32_t> (this->comp) swc-db/src/cc/include/swcdb/thrift/gen-cpp/Service_types.h:352:56: warning: use of old-style cast to ‘enum SWC::Thrift::KeySeq::type’ [-Wold-style-cast] 352 | Schema() : cid(0), col_name(), col_seq((KeySeq::type)0), | ^ | - | static_cast< -- | > (0) swc-db/src/cc/include/swcdb/thrift/gen-cpp/Service_types.h:319:15: warning: ‘virtual const char* SWC::Thrift::Exception::what() const’ can be marked override [-Wsuggest-overr$ 319 | const char* what() const noexcept; swc-db/src/cc/include/swcdb/thrift/gen-cpp/Service_types.h:591:12: warning: ‘virtual uint32_t SWC::Thrift::SpecSchemas::write(apache::thrift::protocol::TProtocol*) const’ can$ 591 | uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; swc-db/src/cc/include/swcdb/thrift/gen-cpp/Service.h:274:8: warning: ‘virtual void SWC::Thrift::ServiceNull::scan(SWC::Thrift::Cells&, const SWC::Thrift::SpecScan&)’ can be marked override [-Wsuggest-override] 274 | void scan(Cells& /* _return */, const SpecScan& /* spec */) { | ^~~~
Attachments
Issue Links
- links to