diff options
author | Yinhang Liu <yinhangx.liu@intel.com> | 2017-11-17 16:02:54 +0800 |
---|---|---|
committer | windyuan <feng.yuan@intel.com> | 2017-11-17 19:07:31 +0800 |
commit | be3be6ab3d1980afa1785f0275ce53974c51a95f (patch) | |
tree | 73c72d7eb7a90046802e5f94fbb9e09f123f69b3 | |
parent | c58ad469a487fb35599f668e390aa544a2743ec5 (diff) | |
download | libxcam-be3be6ab3d1980afa1785f0275ce53974c51a95f.tar.gz |
build: fix warnings
-rw-r--r-- | modules/soft/soft_worker.cpp | 2 | ||||
-rw-r--r-- | xcore/xcam_utils.cpp | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/modules/soft/soft_worker.cpp b/modules/soft/soft_worker.cpp index 3cf49bc..3a76345 100644 --- a/modules/soft/soft_worker.cpp +++ b/modules/soft/soft_worker.cpp @@ -63,7 +63,6 @@ public: , _args (args) , _item (item) , _sync (sync) - , _error (XCAM_RETURN_NO_ERROR) { } virtual XCamReturn run (); @@ -75,7 +74,6 @@ private: SmartPtr<Worker::Arguments> _args; WorkSize _item; SmartPtr<ItemSynch> _sync; - XCamReturn _error; }; XCamReturn diff --git a/xcore/xcam_utils.cpp b/xcore/xcam_utils.cpp index 35b08e6..9d02851 100644 --- a/xcore/xcam_utils.cpp +++ b/xcore/xcam_utils.cpp @@ -115,8 +115,8 @@ linear_interpolate_p4( void get_gauss_table (uint32_t radius, float sigma, std::vector<float> &table, bool normalize) { - int i; - int scale = radius * 2 + 1; + uint32_t i; + uint32_t scale = radius * 2 + 1; float dis = 0.0f, sum = 1.0f; //XCAM_ASSERT (scale < 512); |