Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.
2464 Discussions

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

Blas_Rodriguez_Somoz
378 Views
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
378 Views
Hello, thank you! Could you please submit it viaMake a Contributionform?
0 Kudos
Blas_Rodriguez_Somoz
378 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.
0 Kudos
Reply