Task #286 - boost-1.83.0-7.fc41/scan-results.err
back to task #286download
Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/libs/thread/src/pthread/thread.cpp:37: included_from: Included from here. boost-1.83.0-build/boost_1_83_0/boost/algorithm/string/trim.hpp:23: included_from: Included from here. boost-1.83.0-build/boost_1_83_0/boost/algorithm/string/classification.hpp:18: included_from: Included from here. boost-1.83.0-build/boost_1_83_0/boost/algorithm/string/detail/classification.hpp:137:25: warning[cplusplus.NewDeleteLeaks]: Potential memory leak # 135| ~is_any_ofF() # 136| { # 137|-> if(!use_fixed_storage(m_Size) && m_Storage.m_dynSet!=0) # 138| { # 139| delete [] m_Storage.m_dynSet; Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/boost/algorithm/string/detail/classification.hpp:141:17: warning[cplusplus.NewDeleteLeaks]: Potential memory leak # 139| delete [] m_Storage.m_dynSet; # 140| } # 141|-> } # 142| # 143| // Assignment Error: COMPILER_WARNING (CWE-457): boost-1.83.0-build/boost_1_83_0/boost/archive/iterators/wchar_from_mb.hpp:103:30: warning[-Wuninitialized]: member ‘boost::archive::iterators::wchar_from_mb<boost::archive::iterators::xml_escape<const char*> >::sliding_buffer<char>::m_buffer’ is used uninitialized # 103 | m_next_available(m_buffer.begin()), # | ^~~~~~~~ boost-1.83.0-build/boost_1_83_0/boost/archive/iterators/wchar_from_mb.hpp: scope_hint: In instantiation of ‘boost::archive::iterators::wchar_from_mb<Base>::sliding_buffer<T>::sliding_buffer() [with T = wchar_t; Base = boost::archive::iterators::xml_escape<const char*>]’ #/builddir/build/BUILD/boost-1.83.0-build/boost_1_83_0/boost/archive/iterators/wchar_from_mb.hpp:131:31: required from ‘boost::archive::iterators::wchar_from_mb<Base>::wchar_from_mb(T) [with T = const char*; Base = boost::archive::iterators::xml_escape<const char*>]’ # 131 | m_mbs(std::mbstate_t()) # | ^ # 59 | xmbtows(begin), # | ^~~~~~~~~~~~~~ #/builddir/build/BUILD/boost-1.83.0-build/boost_1_83_0/boost/archive/impl/xml_woarchive_impl.ipp:100:17: required from ‘void boost::archive::xml_woarchive_impl<Archive>::save(const char*) [with Archive = boost::archive::xml_woarchive]’ # 100 | save_iterator(os, s, s + std::strlen(s)); # | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ # 35 | template class xml_woarchive_impl<xml_woarchive> ; # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 101| // default ctor # 102| sliding_buffer() : # 103|-> m_next_available(m_buffer.begin()), # 104| m_next(m_buffer.begin()), # 105| m_done(false) Error: COMPILER_WARNING (CWE-457): boost-1.83.0-build/boost_1_83_0/boost/archive/iterators/wchar_from_mb.hpp:103:30: warning[-Wuninitialized]: member ‘boost::archive::iterators::wchar_from_mb<boost::archive::iterators::xml_escape<const char*> >::sliding_buffer<wchar_t>::m_buffer’ is used uninitialized # 103 | m_next_available(m_buffer.begin()), # | ^~~~~~~~ # 101| // default ctor # 102| sliding_buffer() : # 103|-> m_next_available(m_buffer.begin()), # 104| m_next(m_buffer.begin()), # 105| m_done(false) Error: COMPILER_WARNING: boost-1.83.0-build/boost_1_83_0/boost/context/fiber.hpp:12: included_from: Included from here. boost-1.83.0-build/boost_1_83_0/boost/fiber/context.hpp:28: included_from: Included from here. boost-1.83.0-build/boost_1_83_0/libs/fiber/src/waker.cpp:3: included_from: Included from here. boost-1.83.0-build/boost_1_83_0/boost/context/fiber_fcontext.hpp:52:11: warning: "__NR_map_shadow_stack" redefined # 52 | # define __NR_map_shadow_stack 451 # | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/asm/unistd.h:20: included_from: Included from here. /usr/include/sys/syscall.h:24: included_from: Included from here. boost-1.83.0-build/boost_1_83_0/boost/fiber/detail/futex.hpp:22: included_from: Included from here. boost-1.83.0-build/boost_1_83_0/boost/fiber/detail/spinlock_ttas_adaptive_futex.hpp:18: included_from: Included from here. boost-1.83.0-build/boost_1_83_0/boost/fiber/detail/spinlock.hpp:19: included_from: Included from here. boost-1.83.0-build/boost_1_83_0/boost/fiber/waker.hpp:8: included_from: Included from here. boost-1.83.0-build/boost_1_83_0/libs/fiber/src/waker.cpp:2: included_from: Included from here. /usr/include/asm/unistd_64.h:368:9: note: this is the location of the previous definition # 368 | #define __NR_map_shadow_stack 453 # | ^~~~~~~~~~~~~~~~~~~~~ # 50| # define SHSTK_ENABLED (__CET__ & 0x2) # 51| # define BOOST_CONTEXT_SHADOW_STACK (SHSTK_ENABLED && SHADOW_STACK_SYSCALL) # 52|-> # define __NR_map_shadow_stack 451 # 53| #ifndef SHADOW_STACK_SET_TOKEN # 54| # define SHADOW_STACK_SET_TOKEN 0x1 Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/libs/json/src/src.cpp:10: included_from: Included from here. boost-1.83.0-build/boost_1_83_0/boost/json/src.hpp:58: included_from: Included from here. boost-1.83.0-build/boost_1_83_0/boost/json/detail/charconv/impl/from_chars.ipp:14: included_from: Included from here. boost-1.83.0-build/boost_1_83_0/boost/json/detail/charconv/detail/fast_float/fast_float.hpp:11: included_from: Included from here. boost-1.83.0-build/boost_1_83_0/boost/json/detail/charconv/detail/fast_float/float_common.hpp:139:53: warning[deadcode.DeadStores]: Value stored to 'input_num' is never read # 137| ((input_num & uint64_t( 0xf0)) && (input_num >>= 4, last_bit |= 4)), # 138| ((input_num & uint64_t( 0xc)) && (input_num >>= 2, last_bit |= 2)), # 139|-> ((input_num & uint64_t( 0x2)) && (input_num >>= 1, last_bit |= 1)), # 140| 63 - last_bit # 141| ); Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/libs/log/src/default_sink.cpp:27: included_from: Included from here. boost-1.83.0-build/boost_1_83_0/libs/log/src/default_sink.hpp:22: included_from: Included from here. boost-1.83.0-build/boost_1_83_0/boost/log/attributes/value_extraction.hpp:40: included_from: Included from here. boost-1.83.0-build/boost_1_83_0/boost/log/utility/type_dispatch/static_type_dispatcher.hpp:197:9: warning[core.uninitialized.UndefReturn]: Returning null reference # 195| } # 196| # 197|-> return *pinstance; # 198| } # 199| Error: COMPILER_WARNING (CWE-9001): boost-1.83.0-build/boost_1_83_0/libs/mpi/src/offsets.cpp:8: included_from: Included from here. boost-1.83.0-build/boost_1_83_0/boost/mpi/detail/offsets.hpp:36:110: warning[-Wattributes]: ‘visibility’ attribute ignored on non-class types # 36 | int* BOOST_MPI_DECL make_offsets(communicator const& comm, int const* sizes, int const* displs, int root = -1); # | ^ # 34| // If memory was allocated, returns a pointer to it # 35| // otherwise null. # 36|-> int* BOOST_MPI_DECL make_offsets(communicator const& comm, int const* sizes, int const* displs, int root = -1); # 37| # 38| // Reconstruct skip slots from sizes and offsets. Error: COMPILER_WARNING (CWE-9001): boost-1.83.0-build/boost_1_83_0/libs/mpi/src/python/serialize.cpp:13: included_from: Included from here. boost-1.83.0-build/boost_1_83_0/boost/mpi/python/serialize.hpp:122:31: warning[-Wattributes]: type attributes ignored after type is already defined # 122 | class BOOST_MPI_PYTHON_DECL direct_serialization_table< IArchiver , OArchiver >; \ # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ boost-1.83.0-build/boost_1_83_0/libs/mpi/src/python/serialize.cpp:51:1: note: in expansion of macro ‘BOOST_PYTHON_DIRECT_SERIALIZATION_ARCHIVE_IMPL’ # 51 | BOOST_PYTHON_DIRECT_SERIALIZATION_ARCHIVE_IMPL( # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 120| namespace boost { namespace python { namespace detail { \ # 121| template \ # 122|-> class BOOST_MPI_PYTHON_DECL direct_serialization_table< IArchiver , OArchiver >; \ # 123| \ # 124| template<> \ Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/libs/mpi/src/broadcast.cpp:10: included_from: Included from here. boost-1.83.0-build/boost_1_83_0/boost/mpi/collectives/broadcast.hpp:11: included_from: Included from here. boost-1.83.0-build/boost_1_83_0/boost/mpi/collectives_fwd.hpp:19: included_from: Included from here. boost-1.83.0-build/boost_1_83_0/boost/mpi/collectives.hpp:21: included_from: Included from here. boost-1.83.0-build/boost_1_83_0/boost/mpi/communicator.hpp:20: included_from: Included from here. boost-1.83.0-build/boost_1_83_0/boost/optional.hpp:15: included_from: Included from here. boost-1.83.0-build/boost_1_83_0/boost/optional/optional.hpp:1532: included_from: Included from here. boost-1.83.0-build/boost_1_83_0/boost/optional/detail/optional_reference_spec.hpp:153:48: warning[core.uninitialized.UndefReturn]: Returning null reference # 151| T* get_ptr() const BOOST_NOEXCEPT { return ptr_; } # 152| T* operator->() const { BOOST_ASSERT(ptr_); return ptr_; } # 153|-> T& operator*() const { BOOST_ASSERT(ptr_); return *ptr_; } # 154| # 155| T& value() const Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/libs/log/src/default_attribute_names.cpp:17: included_from: Included from here. boost-1.83.0-build/boost_1_83_0/boost/smart_ptr/shared_ptr.hpp:779:9: warning[core.uninitialized.UndefReturn]: Returning null reference # 777| { # 778| BOOST_ASSERT( px != 0 ); # 779|-> return *px; # 780| } # 781| Error: COMPILER_WARNING (CWE-457): boost-1.83.0-build/boost_1_83_0/boost/spirit/home/qi/numeric/real.hpp:21: included_from: Included from here. boost-1.83.0-build/boost_1_83_0/boost/spirit/home/qi/numeric.hpp:17: included_from: Included from here. boost-1.83.0-build/boost_1_83_0/boost/spirit/include/qi_core.hpp:23: included_from: Included from here. boost-1.83.0-build/boost_1_83_0/libs/log/src/setup/default_filter_factory.cpp:22: included_from: Included from here. boost-1.83.0-build/boost_1_83_0/boost/spirit/home/qi/numeric/detail/real_impl.hpp: scope_hint: In function ‘boost::spirit::qi::detail::real_impl<double, boost::spirit::qi::strict_real_policies<double> >::parse<char const*, double>(char const*&, char const* const&, double&, boost::spirit::qi::strict_real_policies<double> const&)bool [clone .isra.0]’ boost-1.83.0-build/boost_1_83_0/boost/spirit/home/qi/numeric/detail/real_impl.hpp:337:45: warning[-Wmaybe-uninitialized]: ‘n’ may be used uninitialized # 337 | traits::assign_to(traits::negate(neg, n), attr); # | ~~~~~~~~~~~~~~^~~~~~~~ boost-1.83.0-build/boost_1_83_0/boost/spirit/home/qi/numeric/detail/real_impl.hpp:209:15: note: ‘n’ declared here # 209 | T n; # | ^ # 335| # 336| // If we got a negative sign, negate the number # 337|-> traits::assign_to(traits::negate(neg, n), attr); # 338| # 339| // Success!!! Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/libs/test/src/debug.cpp:16: included_from: Included from here. boost-1.83.0-build/boost_1_83_0/boost/test/impl/debug.ipp:370:15: warning[deadcode.DeadStores]: Although the value stored to 'arg' is used in the enclosing expression, the value is never actually read from 'arg' # 368| # 369| va_start( args, file ); # 370|-> while( !!(arg = va_arg( args, char const* )) ) # 371| num_args++; # 372| va_end( args ); Error: CPPCHECK_WARNING: boost-1.83.0-build/boost_1_83_0/libs/container/src/alloc_lib.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/libs/container/src/alloc_lib.c:24: included_from: Included from here. boost-1.83.0-build/boost_1_83_0/libs/container/src/dlmalloc_ext_2_8_6.c:52: included_from: Included from here. boost-1.83.0-build/boost_1_83_0/libs/container/src/dlmalloc_2_8_6.c:5355:5: warning[deadcode.DeadStores]: Value stored to 'result' is never read # 5353| size_t result; /* invert sense of 0 */ # 5354| if (bytes == 0) # 5355|-> result = granularity_align(1); /* Use minimal size */ # 5356| if (bytes == MAX_SIZE_T) # 5357| result = 0; /* disable */ Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/libs/container/src/dlmalloc_2_8_6.c:5932:7: warning[deadcode.DeadStores]: Value stored to 'result' is never read # 5930| if (ok_magic(ms)) { # 5931| if (bytes == 0) # 5932|-> result = granularity_align(1); /* Use minimal size */ # 5933| if (bytes == MAX_SIZE_T) # 5934| result = 0; /* disable */ Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/libs/container/src/alloc_lib.c:24: included_from: Included from here. boost-1.83.0-build/boost_1_83_0/libs/container/src/dlmalloc_ext_2_8_6.c:463:31: warning[deadcode.DeadStores]: Although the value stored to 'needs_backwards' is used in the enclosing expression, the value is never actually read from 'needs_backwards' # 461| current_forward = GET_TRUNCATED_SIZE(received_size, backwards_multiple); # 462| //No need to round needs_backwards because backwards_multiple == lcm # 463|-> needs_backwards_lcmed = needs_backwards = size_to_achieve - current_forward; # 464| assert((needs_backwards_lcmed & (MALLOC_ALIGNMENT - 1u)) == 0); # 465| *plcm = lcm; Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/libs/container/src/dlmalloc_ext_2_8_6.c:473:31: warning[deadcode.DeadStores]: Although the value stored to 'needs_backwards' is used in the enclosing expression, the value is never actually read from 'needs_backwards' # 471| lcm = backwards_multiple*2u; # 472| current_forward = GET_TRUNCATED_SIZE(received_size, backwards_multiple); # 473|-> needs_backwards_lcmed = needs_backwards = size_to_achieve - current_forward; # 474| if(0 != (needs_backwards_lcmed & (MALLOC_ALIGNMENT-1))) # 475| //while(0 != (needs_backwards_lcmed & (MALLOC_ALIGNMENT-1))) Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/libs/container/src/dlmalloc_ext_2_8_6.c:487:31: warning[deadcode.DeadStores]: Although the value stored to 'needs_backwards' is used in the enclosing expression, the value is never actually read from 'needs_backwards' # 485| lcm = backwards_multiple*4u; # 486| current_forward = GET_TRUNCATED_SIZE(received_size, backwards_multiple); # 487|-> needs_backwards_lcmed = needs_backwards = size_to_achieve - current_forward; # 488| //while(0 != (needs_backwards_lcmed & (MALLOC_ALIGNMENT-1))) # 489| //needs_backwards_lcmed += backwards_multiple; Error: COMPILER_WARNING (CWE-563): boost-1.83.0-build/boost_1_83_0/libs/filesystem/config/has_stat_st_mtim.cpp: scope_hint: In function ‘int main()’ boost-1.83.0-build/boost_1_83_0/libs/filesystem/config/has_stat_st_mtim.cpp:16:17: warning[-Wunused-but-set-variable]: variable ‘st’ set but not used # 16 | struct stat st; # | ^~ # 14| int main() # 15| { # 16|-> struct stat st; # 17| st.st_mtim.tv_nsec = 10; # 18| } Error: COMPILER_WARNING (CWE-563): boost-1.83.0-build/boost_1_83_0/libs/filesystem/config/has_statx.cpp: scope_hint: In function ‘int main()’ boost-1.83.0-build/boost_1_83_0/libs/filesystem/config/has_statx.cpp:18:9: warning[-Wunused-variable]: unused variable ‘res’ # 18 | int res = statx(AT_FDCWD, ".", AT_SYMLINK_NOFOLLOW | AT_NO_AUTOMOUNT, STATX_BTIME, &st); # | ^~~ # 16| { # 17| struct statx st; # 18|-> int res = statx(AT_FDCWD, ".", AT_SYMLINK_NOFOLLOW | AT_NO_AUTOMOUNT, STATX_BTIME, &st); # 19| st.stx_btime.tv_sec = 1; # 20| st.stx_btime.tv_nsec = 10; Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/libs/filesystem/config/has_statx.cpp:18:9: warning[deadcode.DeadStores]: Value stored to 'res' during its initialization is never read # 16| { # 17| struct statx st; # 18|-> int res = statx(AT_FDCWD, ".", AT_SYMLINK_NOFOLLOW | AT_NO_AUTOMOUNT, STATX_BTIME, &st); # 19| st.stx_btime.tv_sec = 1; # 20| st.stx_btime.tv_nsec = 10; Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/libs/graph_parallel/src/mpi_process_group.cpp:728:3: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined # 726| // Determine how big the receive buffer should be # 727| #if BOOST_VERSION >= 103600 # 728|-> int size = status.count<boost::mpi::packed>().get(); # 729| #else # 730| int size; Error: COMPILER_WARNING (CWE-563): boost-1.83.0-build/boost_1_83_0/libs/graph_parallel/src/mpi_process_group.cpp: scope_hint: In member function ‘void boost::graph::distributed::mpi_process_group::impl::free_sent_batches()’ boost-1.83.0-build/boost_1_83_0/libs/graph_parallel/src/mpi_process_group.cpp:1035:7: warning[-Wunused-but-set-variable]: variable ‘result’ set but not used # 1035 | int result; # | ^~~~~~ # 1033| iterator it = sent_batches.begin(); # 1034| int flag; # 1035|-> int result; # 1036| while(it != sent_batches.end()) { # 1037| result = MPI_Test(&it->request,&flag,MPI_STATUS_IGNORE); Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/libs/graph_parallel/src/mpi_process_group.cpp:1037:5: warning[deadcode.DeadStores]: Value stored to 'result' is never read # 1035| int result; # 1036| while(it != sent_batches.end()) { # 1037|-> result = MPI_Test(&it->request,&flag,MPI_STATUS_IGNORE); # 1038| BOOST_ASSERT(result == MPI_SUCCESS); # 1039| iterator next=it; Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/libs/graph_parallel/src/mpi_process_group.cpp:1048:7: warning[deadcode.DeadStores]: Value stored to 'result' is never read # 1046| for (std::size_t i=0; i< batch_pool.size();++i) { # 1047| if(batch_pool[i].request != MPI_REQUEST_NULL) { # 1048|-> result = MPI_Test(&batch_pool[i].request,&flag,MPI_STATUS_IGNORE); # 1049| BOOST_ASSERT(result == MPI_SUCCESS); # 1050| if (flag) { Error: COMPILER_WARNING (CWE-563): boost-1.83.0-build/boost_1_83_0/libs/locale/build/has_icu_test.cpp: scope_hint: In function ‘int main()’ boost-1.83.0-build/boost_1_83_0/libs/locale/build/has_icu_test.cpp:16:13: warning[-Wunused-variable]: unused variable ‘c’ # 16 | UChar32 c = ::u_charFromName(U_UNICODE_CHAR_NAME, "GREEK SMALL LETTER ALPHA", &err); # | ^ # 14| icu::Locale loc; # 15| UErrorCode err = U_ZERO_ERROR; # 16|-> UChar32 c = ::u_charFromName(U_UNICODE_CHAR_NAME, "GREEK SMALL LETTER ALPHA", &err); # 17| return err; # 18| } Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/libs/locale/build/has_icu_test.cpp:16:13: warning[deadcode.DeadStores]: Value stored to 'c' during its initialization is never read # 14| icu::Locale loc; # 15| UErrorCode err = U_ZERO_ERROR; # 16|-> UChar32 c = ::u_charFromName(U_UNICODE_CHAR_NAME, "GREEK SMALL LETTER ALPHA", &err); # 17| return err; # 18| } Error: COMPILER_WARNING (CWE-252): boost-1.83.0-build/boost_1_83_0/libs/log/config/x86-ext/avx2.cpp: scope_hint: In function ‘int main(int, char**)’ boost-1.83.0-build/boost_1_83_0/libs/log/config/x86-ext/avx2.cpp:14:10: warning[-Wunused-result]: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ # 14 | fread(&mm, 1u, sizeof(mm), stdin); # | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 12| { # 13| __m256i mm = _mm256_setzero_si256(); # 14|-> fread(&mm, 1u, sizeof(mm), stdin); # 15| mm = _mm256_shuffle_epi8(_mm256_alignr_epi8(mm, mm, 10), mm); # 16| fwrite(&mm, 1u, sizeof(mm), stdout); Error: COMPILER_WARNING (CWE-252): boost-1.83.0-build/boost_1_83_0/libs/log/config/x86-ext/ssse3.cpp: scope_hint: In function ‘int main(int, char**)’ boost-1.83.0-build/boost_1_83_0/libs/log/config/x86-ext/ssse3.cpp:14:10: warning[-Wunused-result]: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ # 14 | fread(&mm, 1u, sizeof(mm), stdin); # | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 12| { # 13| __m128i mm = _mm_setzero_si128(); # 14|-> fread(&mm, 1u, sizeof(mm), stdin); # 15| mm = _mm_shuffle_epi8(_mm_alignr_epi8(mm, mm, 10), mm); # 16| fwrite(&mm, 1u, sizeof(mm), stdout); Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/libs/log/src/posix/ipc_reliable_message_queue.cpp:285:21: warning[deadcode.DeadStores]: Value stored to 'start_time' during its initialization is never read # 283| bool created = false; # 284| unsigned int i = 0u; # 285|-> std::time_t start_time = std::time(NULL); # 286| while (true) # 287| { Error: COMPILER_WARNING (CWE-393): boost-1.83.0-build/boost_1_83_0/libs/mpi/src/environment.cpp: scope_hint: In function ‘int boost::mpi::detail::level2int(boost::mpi::threading::level)’ boost-1.83.0-build/boost_1_83_0/libs/mpi/src/environment.cpp:35:23: warning[-Wreturn-type]: control reaches end of non-void function # 35 | environment::abort(70); // EX_SOFTWARE # | ~~~~~~~~~~~~~~~~~~^~~~ # 33| return MPI_THREAD_MULTIPLE; # 34| default: # 35|-> environment::abort(70); // EX_SOFTWARE # 36| } # 37| } Error: COMPILER_WARNING (CWE-393): boost-1.83.0-build/boost_1_83_0/libs/mpi/src/environment.cpp: scope_hint: In function ‘boost::mpi::threading::level boost::mpi::detail::int2level(int)’ boost-1.83.0-build/boost_1_83_0/libs/mpi/src/environment.cpp:53:23: warning[-Wreturn-type]: control reaches end of non-void function # 53 | environment::abort(70); // EX_SOFTWARE # | ~~~~~~~~~~~~~~~~~~^~~~ # 51| return multiple; # 52| default: # 53|-> environment::abort(70); // EX_SOFTWARE # 54| } # 55| } Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/libs/mpi/src/offsets.cpp:61:7: warning[deadcode.DeadStores]: Value stored to 'displs' is never read # 59| int nproc = comm.size(); # 60| int* offsets = new int[nproc]; # 61|-> displs = offsets; # 62| sizes2offsets(sizes, offsets, nproc); # 63| return offsets; Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/libs/nowide/config/check_lfs_support.cpp:21:11: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull' # 19| #else # 20| // Check that those functions and off_t are available # 21|-> (void)fseeko(f, off_t(0), SEEK_CUR); # 22| (void)ftello(f); # 23| #endif Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/libs/program_options/src/parsers.cpp:247:9: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by field 'obj_ptr' # 245| const std::string& prefix) # 246| { # 247|-> return parse_environment(desc, detail::prefix_name_mapper(prefix)); # 248| } # 249| Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/libs/python/src/converter/registry.cpp:91:11: warning[core.CallAndMessage]: Called function pointer is null (null dereference) # 89| return source == 0 # 90| ? incref(Py_None) # 91|-> : this->m_to_python(const_cast<void*>(source)); # 92| } # 93| Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/libs/serialization/src/archive_exception.cpp:50:9: warning[deadcode.DeadStores]: Value stored to 'length' is never read # 48| switch(code){ # 49| case no_exception: # 50|-> length = append(length, "uninitialized exception"); # 51| break; # 52| case unregistered_class: Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/libs/serialization/src/archive_exception.cpp:56:13: warning[deadcode.DeadStores]: Value stored to 'length' is never read # 54| if(NULL != e1){ # 55| length = append(length, " - "); # 56|-> length = append(length, e1); # 57| } # 58| break; Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/libs/serialization/src/archive_exception.cpp:60:9: warning[deadcode.DeadStores]: Value stored to 'length' is never read # 58| break; # 59| case invalid_signature: # 60|-> length = append(length, "invalid signature"); # 61| break; # 62| case unsupported_version: Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/libs/serialization/src/archive_exception.cpp:63:9: warning[deadcode.DeadStores]: Value stored to 'length' is never read # 61| break; # 62| case unsupported_version: # 63|-> length = append(length, "unsupported version"); # 64| break; # 65| case pointer_conflict: Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/libs/serialization/src/archive_exception.cpp:66:9: warning[deadcode.DeadStores]: Value stored to 'length' is never read # 64| break; # 65| case pointer_conflict: # 66|-> length = append(length, "pointer conflict"); # 67| break; # 68| case incompatible_native_format: Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/libs/serialization/src/archive_exception.cpp:72:13: warning[deadcode.DeadStores]: Value stored to 'length' is never read # 70| if(NULL != e1){ # 71| length = append(length, " - "); # 72|-> length = append(length, e1); # 73| } # 74| break; Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/libs/serialization/src/archive_exception.cpp:76:9: warning[deadcode.DeadStores]: Value stored to 'length' is never read # 74| break; # 75| case array_size_too_short: # 76|-> length = append(length, "array size too short"); # 77| break; # 78| case input_stream_error: Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/libs/serialization/src/archive_exception.cpp:86:13: warning[deadcode.DeadStores]: Value stored to 'length' is never read # 84| if(NULL != e2){ # 85| length = append(length, "-"); # 86|-> length = append(length, e2); # 87| } # 88| break; Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/libs/serialization/src/archive_exception.cpp:90:9: warning[deadcode.DeadStores]: Value stored to 'length' is never read # 88| break; # 89| case invalid_class_name: # 90|-> length = append(length, "class name too long"); # 91| break; # 92| case unregistered_cast: Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/libs/serialization/src/archive_exception.cpp:96:9: warning[deadcode.DeadStores]: Value stored to 'length' is never read # 94| length = append(length, (NULL != e1) ? e1 : "?"); # 95| length = append(length, "<-"); # 96|-> length = append(length, (NULL != e2) ? e2 : "?"); # 97| break; # 98| case unsupported_class_version: Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/libs/serialization/src/archive_exception.cpp:100:9: warning[deadcode.DeadStores]: Value stored to 'length' is never read # 98| case unsupported_class_version: # 99| length = append(length, "class version "); # 100|-> length = append(length, (NULL != e1) ? e1 : "<unknown class>"); # 101| break; # 102| case other_exception: Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/libs/serialization/src/archive_exception.cpp:105:9: warning[deadcode.DeadStores]: Value stored to 'length' is never read # 103| // if get here - it indicates a derived exception # 104| // was sliced by passing by value in catch # 105|-> length = append(length, "unknown derived exception"); # 106| break; # 107| case multiple_code_instantiation: Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/libs/serialization/src/archive_exception.cpp:111:13: warning[deadcode.DeadStores]: Value stored to 'length' is never read # 109| if(NULL != e1){ # 110| length = append(length, " - "); # 111|-> length = append(length, e1); # 112| } # 113| break; Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/libs/serialization/src/archive_exception.cpp:122:13: warning[deadcode.DeadStores]: Value stored to 'length' is never read # 120| if(NULL != e2){ # 121| length = append(length, "-"); # 122|-> length = append(length, e2); # 123| } # 124| break; Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/libs/url/src/detail/format_args.cpp:536:38: warning[core.DivideZero]: Division by zero # 534| while (n) # 535| { # 536|-> unsigned long long int d = v / p; # 537| encode_one(out, '0' + static_cast<char>(d), cs); # 538| --n; Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/libs/url/src/detail/format_args.cpp:633:38: warning[core.DivideZero]: Division by zero # 631| while (n) # 632| { # 633|-> unsigned long long int d = v / p; # 634| encode_one(out, '0' + static_cast<char>(d), cs); # 635| --n; Error: CPPCHECK_WARNING: boost-1.83.0-build/boost_1_83_0/tools/build/src/engine/builtins.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/tools/build/src/engine/check_clib.cpp:17:12: warning[deadcode.DeadStores]: Value stored to '_' during its initialization is never read # 15| int check_clib() # 16| { # 17|-> { auto _ = strdup("-"); } # 18| return 0; # 19| } Error: CPPCHECK_WARNING (CWE-401): boost-1.83.0-build/boost_1_83_0/tools/build/src/engine/check_clib.cpp:18: error[memleak]: Memory leak: _ # 16| { # 17| { auto _ = strdup("-"); } # 18|-> return 0; # 19| } Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/tools/build/src/engine/check_clib.cpp:18:2: warning[unix.Malloc]: Potential leak of memory pointed to by '_' # 16| { # 17| { auto _ = strdup("-"); } # 18|-> return 0; # 19| } Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/tools/build/src/engine/check_cxx11.cpp:25:12: warning[deadcode.DeadStores]: Value stored to '_' during its initialization is never read # 23| // in sysinfo.cpp. # 24| #ifndef _WIN32 # 25|-> { auto _ = std::thread::hardware_concurrency(); } # 26| #endif # 27| Error: CPPCHECK_WARNING: boost-1.83.0-build/boost_1_83_0/tools/build/src/engine/compile.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/tools/build/src/engine/compile.cpp:72:61: warning[unix.cstring.BadSizeArg]: Potential buffer overflow. Replace with 'sizeof(buf) - strlen(buf) - 1' or use a safer 'strlcat' API # 70| if ( rule->module->name ) # 71| { # 72|-> strncat( buf, object_str( rule->module->name ), sizeof( buf ) - # 73| 1 ); # 74| strncat( buf, ".", sizeof( buf ) - 1 ); Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/tools/build/src/engine/compile.cpp:74:32: warning[unix.cstring.BadSizeArg]: Potential buffer overflow. Replace with 'sizeof(buf) - strlen(buf) - 1' or use a safer 'strlcat' API # 72| strncat( buf, object_str( rule->module->name ), sizeof( buf ) - # 73| 1 ); # 74|-> strncat( buf, ".", sizeof( buf ) - 1 ); # 75| if ( strncmp( buf, object_str( rule->name ), strlen( buf ) ) == 0 ) # 76| { Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/tools/build/src/engine/compile.cpp:80:49: warning[unix.cstring.BadSizeArg]: Potential buffer overflow. Replace with 'sizeof(buf) - strlen(buf) - 1' or use a safer 'strlcat' API # 78| } # 79| } # 80|-> strncat( buf, object_str( rule->name ), sizeof( buf ) - 1 ); # 81| debug_compile( 1, buf, frame ); # 82| Error: CPPCHECK_WARNING: boost-1.83.0-build/boost_1_83_0/tools/build/src/engine/debugger.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-401): boost-1.83.0-build/boost_1_83_0/tools/build/src/engine/debugger.cpp:276: error[memleakOnRealloc]: Common realloc mistake: 'breakpoints' nulled but not freed upon failure # 274| int new_capacity = breakpoints_capacity * 2; # 275| if ( new_capacity == 0 ) new_capacity = 1; # 276|-> breakpoints = ( struct breakpoint * )realloc( breakpoints, new_capacity * sizeof( struct breakpoint ) ); # 277| breakpoints_capacity = new_capacity; # 278| } Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/tools/build/src/engine/debugger.cpp:1013:19: warning[deadcode.DeadStores]: Although the value stored to 'pid' is used in the enclosing expression, the value is never actually read from 'pid' # 1011| int status; # 1012| int pid; # 1013|-> while ( ( pid = waitpid( child_pid, &status, 0 ) ) == -1 ) # 1014| if ( errno != EINTR ) # 1015| break; Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/tools/build/src/engine/debugger.cpp:2139:18: warning[deadcode.DeadStores]: Value stored to 'value' during its initialization is never read # 2137| static void debug_mi_gdb_show( int argc, const char * * argv ) # 2138| { # 2139|-> const char * value = ""; # 2140| /* FIXME: implement this for real */ # 2141| debug_mi_format_token(); Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/tools/build/src/engine/debugger.cpp:2656:12: warning[deadcode.DeadStores]: Value stored to 'saved' during its initialization is never read # 2654| tokens.reserve(capacity); # 2655| char * iter = line; # 2656|-> char * saved = iter; # 2657| for ( ; ; ) # 2658| { Error: CPPCHECK_WARNING: boost-1.83.0-build/boost_1_83_0/tools/build/src/engine/execunix.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/tools/build/src/engine/execunix.cpp:242:9: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value # 240| fcntl( out[ EXECCMD_PIPE_READ ], F_SETFD, FD_CLOEXEC ); # 241| if ( globs.pipe_action ) # 242|-> fcntl( err[ EXECCMD_PIPE_READ ], F_SETFD, FD_CLOEXEC ); # 243| # 244| /* ignore SIGINT and SIGQUIT */ Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/tools/build/src/engine/execunix.cpp:259:31: warning[unix.Vfork]: This assignment is prohibited after a successful vfork # 257| return; # 258| # 259|-> if ( ( cmdtab[ slot ].pid = vfork() ) == -1 ) # 260| { # 261| errno_puts( "vfork" ); Error: CLANG_WARNING: boost-1.83.0-build/boost_1_83_0/tools/build/src/engine/execunix.cpp:259:33: warning[security.insecureAPI.vfork]: Call to function 'vfork' is insecure as it can lead to denial of service situations in the parent process. Replace calls to vfork with calls to the safer 'posix_spawn' function # 257| return; # 258| # 259|-> if ( ( cmdtab[ slot ].pid = vfork() ) == -1 ) # 260| { # 261| errno_puts( "vfork" ); Error: CPPCHECK_WARNING: boost-1.83.0-build/boost_1_83_0/tools/build/src/engine/fileunix.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: boost-1.83.0-build/boost_1_83_0/tools/build/src/engine/function.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-758): boost-1.83.0-build/boost_1_83_0/tools/build/src/engine/function.cpp:265: error[ctuOneDefinitionRuleViolation]: The one definition rule is violated, different classes/structs have the same name '_stack' # 263| } # 264| # 265|-> struct _stack # 266| { # 267| public: Error: COMPILER_WARNING: boost-1.83.0-build/boost_1_83_0/tools/build/src/engine/function.cpp:265:8: warning[-Wodr]: type ‘struct _stack’ violates the C++ One Definition Rule # 265 | struct _stack # | ^ boost-1.83.0-build/boost_1_83_0/tools/build/src/engine/make1.cpp:106:16: note: a different type is defined in another translation unit # 106 | typedef struct _stack # | ^ boost-1.83.0-build/boost_1_83_0/tools/build/src/engine/function.cpp:336:12: note: the first difference of corresponding definitions is field ‘start’ # 336 | void * start = nullptr; # | ^ boost-1.83.0-build/boost_1_83_0/tools/build/src/engine/make1.cpp:108:13: note: a field with different name is defined in another translation unit # 108 | state * stack; # | ^ # 263| } # 264| # 265|-> struct _stack # 266| { # 267| public: Error: CPPCHECK_WARNING: boost-1.83.0-build/boost_1_83_0/tools/build/src/engine/hcache.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: boost-1.83.0-build/boost_1_83_0/tools/build/src/engine/jam.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: boost-1.83.0-build/boost_1_83_0/tools/build/src/engine/make.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-664): boost-1.83.0-build/boost_1_83_0/tools/build/src/engine/make.cpp:892: error[mismatchingContainers]: Iterators of different containers 'chain' and 'front->next' are used together. # 890| # 891| // The current tail we put the next newest item. # 892|-> for ( targets_ptr front = chain.get(); front ; front = front->next.get() ) # 893| { # 894| // Find the maximum time, i.e. most recent in the rest of the chain. Error: CPPCHECK_WARNING: boost-1.83.0-build/boost_1_83_0/tools/build/src/engine/make1.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: boost-1.83.0-build/boost_1_83_0/tools/build/src/engine/md5.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: boost-1.83.0-build/boost_1_83_0/tools/build/src/engine/modules.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: boost-1.83.0-build/boost_1_83_0/tools/build/src/engine/modules/order.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: boost-1.83.0-build/boost_1_83_0/tools/build/src/engine/modules/property-set.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: boost-1.83.0-build/boost_1_83_0/tools/build/src/engine/option.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: boost-1.83.0-build/boost_1_83_0/tools/build/src/engine/pathsys.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: boost-1.83.0-build/boost_1_83_0/tools/build/src/engine/regexp.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: boost-1.83.0-build/boost_1_83_0/tools/build/src/engine/rules.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: boost-1.83.0-build/boost_1_83_0/tools/build/src/engine/scan.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: boost-1.83.0-build/boost_1_83_0/tools/build/src/engine/search.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-758): boost-1.83.0-build/boost_1_83_0/tools/build/src/engine/search.cpp:31: error[ctuOneDefinitionRuleViolation]: The one definition rule is violated, different classes/structs have the same name '_binding' # 29| # 30| # 31|-> typedef struct _binding # 32| { # 33| OBJECT * binding; Error: CPPCHECK_WARNING: boost-1.83.0-build/boost_1_83_0/tools/build/src/engine/startup.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: boost-1.83.0-build/boost_1_83_0/tools/build/src/engine/subst.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: boost-1.83.0-build/boost_1_83_0/tools/build/src/engine/variable.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.