Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Fix warnings in CLang. #15270

Merged
merged 1 commit into from
Jul 19, 2019
Merged

Fix warnings in CLang. #15270

merged 1 commit into from
Jul 19, 2019

Commits on Jul 18, 2019

  1. Fix warnings in CLang:

    In file included from ../src/kvstore/kvstore.cc:28:
    ../src/kvstore/./kvstore_local.h:281:23: warning: lambda capture 'this' is not used [-Wunused-lambda-capture]
        auto validator = [this](const int key, const NDArray& nd, bool ignore_sparse) -> bool {
                          ^
    ../src/kvstore/./kvstore_local.h:326:23: warning: lambda capture 'this' is not used [-Wunused-lambda-capture]
        auto validator = [this](const int key, const RSPVal& val_rowid, bool ignore_sparse) -> bool {
                          ^
    In file included from ../src/c_api/c_api_profile.cc:35:
    ../src/c_api/../profiler/./profiler.h:1160:8: warning: 'mxnet::profiler::ProfileOperator::start' hides overloaded virtual function [-Woverloaded-virtual]
      void start(mxnet::Context::DeviceType dev_type, uint32_t dev_id) {
           ^
    ../src/c_api/../profiler/./profiler.h:870:8: note: hidden overloaded virtual function 'mxnet::profiler::ProfileEvent::start' declared here: different number of parameters (0 vs 2)
      void start() override {
           ^
    ../src/c_api/../profiler/./profiler.h:1212:8: warning: lambda capture 'this' is not used [-Wunused-lambda-capture]
          [this](OprExecStat *stat) {}, name_.c_str(), dev_type_, dev_id_,
           ^
    
    See also apache#14940
    larroy committed Jul 18, 2019
    Configuration menu
    Copy the full SHA
    4139a50 View commit details
    Browse the repository at this point in the history