Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.
Announcements
Intel Customer Support will be observing the Martin Luther King holiday on Monday, Jan. 17, and will return on Tues. Jan. 18.
For the latest information on Intel’s response to the Log4j/Log4Shell vulnerability, please see Intel-SA-00646
2407 Discussions

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

Blas_Rodriguez_Somoz
162 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
162 Views
Hello, thank you! Could you please submit it viaMake a Contributionform?
Blas_Rodriguez_Somoz
162 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