Skip to content

core: fix clang warnings#24814

Merged
asmorkalov merged 1 commit intoopencv:4.xfrom
cudawarped:fix_core_clang_warnings
Jan 6, 2024
Merged

core: fix clang warnings#24814
asmorkalov merged 1 commit intoopencv:4.xfrom
cudawarped:fix_core_clang_warnings

Conversation

@cudawarped
Copy link
Copy Markdown
Contributor

Currently building opencv_core with clang emits the following warnings

3 warnings generated.
[3/109] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/bindings_utils.cpp.o
In file included from /home/b/repos/opencv/opencv/modules/core/src/bindings_utils.cpp:5:
In file included from /home/b/repos/opencv/opencv/modules/core/src/precomp.hpp:60:
In file included from /home/b/repos/opencv/opencv/modules/core/include/opencv2/core/private.cuda.hpp:73:
/home/b/repos/opencv/opencv/modules/core/include/opencv2/core/cuda/common.hpp:102:87: warning: unused parameter 'tex' [-Wunused-parameter]
template inline void createTextureObjectPitch2D(cudaTextureObject_t* tex, PtrStepSz& img, const cudaTextureDesc& texDesc) {
^
/home/b/repos/opencv/opencv/modules/core/include/opencv2/core/cuda/common.hpp:102:106: warning: unused parameter 'img' [-Wunused-parameter]
template inline void createTextureObjectPitch2D(cudaTextureObject_t* tex, PtrStepSz& img, const cudaTextureDesc& texDesc) {
^
/home/b/repos/opencv/opencv/modules/core/include/opencv2/core/cuda/common.hpp:102:134: warning: unused parameter 'texDesc' [-Wunused-parameter]
template inline void createTextureObjectPitch2D(cudaTextureObject_t* tex, PtrStepSz& img, const cudaTextureDesc& texDesc) {

which are removed with this PR.

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • The PR is proposed to the proper branch
  • There is a reference to the original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

@asmorkalov asmorkalov self-assigned this Jan 6, 2024
@asmorkalov asmorkalov merged commit 9af4cee into opencv:4.x Jan 6, 2024
This was referenced Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants