Community
cancel
Showing results for 
Search instead for 
Did you mean: 
84 Views

warnings missed by gcc and found by clang (patch included)

Hello

I've found nine warnings missed by gcc which appear when compiling with clang.
I attach a diff file which also include the patch for the test_concurrent_vector bug mentioned in a previous thread.

  • file:include/tbb/internal/_concurrent_unordered_impl.h
    • 2 Wunused-parameter.
    • 1 Wconstant-conversion. This warning depends on how the compiler works, so I add a check for clang and a ignore pragma
  • file:src/tbbmalloc/backend.cpp
    • 4 Wparentheses (assignment which also gives a boolean expression)
  • file:src/test/test_buffer_node.cpp
    • 1 Wunused-parameter
  • file:src/test/test_concurrent_vector.cpp
    • 1 Wtautological-comparison (the bug previously mentioned)
  • file:src/test/test_queue_node.cpp
    • 1 Wunused-parameter
0 Kudos
2 Replies
Anton_M_Intel
Employee
84 Views

Hello, thank you! Could you please submit it viaMake a Contributionform?
84 Views

Excuse me, I remember there is a way to submit contribution files but I don't find how, so I did it in the easy way.
I've submitted the file, and another two I've attached in the thread "Successful build with clang", through the contribution form.
Reply