Unverified Commit 31bec2fb authored by James Lamb's avatar James Lamb Committed by GitHub
Browse files

addressed linting items about empty statements (#2545)

parent a9427512
...@@ -427,8 +427,7 @@ struct JsonParser final { ...@@ -427,8 +427,7 @@ struct JsonParser final {
comment_found = consume_comment(); comment_found = consume_comment();
if (failed) return; if (failed) return;
consume_whitespace(); consume_whitespace();
} } while (comment_found);
while (comment_found);
} }
} }
......
...@@ -173,17 +173,17 @@ class GPUTreeLearner: public SerialTreeLearner { ...@@ -173,17 +173,17 @@ class GPUTreeLearner: public SerialTreeLearner {
/*! \brief GPU command queue object */ /*! \brief GPU command queue object */
boost::compute::command_queue queue_; boost::compute::command_queue queue_;
/*! \brief GPU kernel for 256 bins */ /*! \brief GPU kernel for 256 bins */
const char *kernel256_src_ = const char *kernel256_src_ = {
#include "ocl/histogram256.cl" #include "ocl/histogram256.cl"
; };
/*! \brief GPU kernel for 64 bins */ /*! \brief GPU kernel for 64 bins */
const char *kernel64_src_ = const char *kernel64_src_ = {
#include "ocl/histogram64.cl" #include "ocl/histogram64.cl"
; };
/*! \brief GPU kernel for 16 bins */ /*! \brief GPU kernel for 16 bins */
const char *kernel16_src_ = const char *kernel16_src_ = {
#include "ocl/histogram16.cl" #include "ocl/histogram16.cl"
; };
/*! \brief Currently used kernel source */ /*! \brief Currently used kernel source */
std::string kernel_source_; std::string kernel_source_;
/*! \brief Currently used kernel name */ /*! \brief Currently used kernel name */
...@@ -288,4 +288,3 @@ class GPUTreeLearner: public SerialTreeLearner { ...@@ -288,4 +288,3 @@ class GPUTreeLearner: public SerialTreeLearner {
#endif // USE_GPU #endif // USE_GPU
#endif // LightGBM_TREELEARNER_GPU_TREE_LEARNER_H_ #endif // LightGBM_TREELEARNER_GPU_TREE_LEARNER_H_
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment