Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- scan-build-9 make mbcopy.lo
- scan-build: Using '/usr/lib/llvm-9/bin/clang' for static analysis
- depbase=`echo mbcopy.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
- /bin/sh ../../libtool --tag=CXX --mode=compile /usr/share/clang/scan-build-9/bin/../libexec/c++-analyzer -DHAVE_CONFIG_H -I. -I../../src/mbio -I../../src/mbio -I../../src/mbaux -I../../src/gsf -I/usr/include/gmt -I/usr/include -g -O2 -MT mbcopy.lo -MD -MP -MF $depbase.Tpo -c -o mbcopy.lo mbcopy.cc &&\
- mv -f $depbase.Tpo $depbase.Plo
- libtool: compile: /usr/share/clang/scan-build-9/bin/../libexec/c++-analyzer -DHAVE_CONFIG_H -I. -I../../src/mbio -I../../src/mbio -I../../src/mbaux -I../../src/gsf -I/usr/include/gmt -I/usr/include -g -O2 -MT mbcopy.lo -MD -MP -MF .deps/mbcopy.Tpo -c mbcopy.cc -fPIC -DPIC -o .libs/mbcopy.o
- mbcopy.cc:1475:5: warning: Value stored to 'mb_ping' is never read
- mb_ping = &(records->mb_ping);
- ^ ~~~~~~~~~~~~~~~~~~~
- mbcopy.cc:1567:11: warning: Value stored to 'status' is never read
- status = MB_FAILURE;
- ^ ~~~~~~~~~~
- mbcopy.cc:1574:11: warning: Value stored to 'status' is never read
- status = MB_FAILURE;
- ^ ~~~~~~~~~~
- mbcopy.cc:1593:32: warning: Array access (via field 'beam_flags') results in a null pointer dereference
- mb_ping->beam_flags[i] = istore->beamflag[i];
- ~~~~~~~~~~ ^
- mbcopy.cc:1595:29: warning: Array access (via field 'depth') results in a null pointer dereference
- mb_ping->depth[i] = istore->bath[i];
- ~~~~~ ^
- mbcopy.cc:1596:36: warning: Array access (via field 'across_track') results in a null pointer dereference
- mb_ping->across_track[i] = istore->bath_acrosstrack[i];
- ~~~~~~~~~~~~ ^
- mbcopy.cc:1597:35: warning: Array access (via field 'along_track') results in a null pointer dereference
- mb_ping->along_track[i] = istore->bath_alongtrack[i];
- ~~~~~~~~~~~ ^
- mbcopy.cc:1598:35: warning: Array access (via field 'travel_time') results in a null pointer dereference
- mb_ping->travel_time[i] = 0.25 * (double)istore->range[i] / (double)istore->sample_rate;
- ~~~~~~~~~~~ ^
- mbcopy.cc:1604:34: warning: Array access (via field 'beam_angle') results in a null pointer dereference
- mb_ping->beam_angle[i] = theta;
- ~~~~~~~~~~ ^
- mbcopy.cc:1609:42: warning: Array access (via field 'beam_angle_forward') results in a null pointer dereference
- mb_ping->beam_angle_forward[i] = phi;
- ~~~~~~~~~~~~~~~~~~ ^
- mbcopy.cc:1612:29: warning: Array access (via field 'depth') results in a null pointer dereference
- mb_ping->depth[i] = 0.0;
- ~~~~~ ^
- mbcopy.cc:1613:36: warning: Array access (via field 'across_track') results in a null pointer dereference
- mb_ping->across_track[i] = 0.0;
- ~~~~~~~~~~~~ ^
- mbcopy.cc:1614:35: warning: Array access (via field 'along_track') results in a null pointer dereference
- mb_ping->along_track[i] = 0.0;
- ~~~~~~~~~~~ ^
- mbcopy.cc:1615:35: warning: Array access (via field 'travel_time') results in a null pointer dereference
- mb_ping->travel_time[i] = 0.0;
- ~~~~~~~~~~~ ^
- mbcopy.cc:1616:34: warning: Array access (via field 'beam_angle') results in a null pointer dereference
- mb_ping->beam_angle[i] = 0.0;
- ~~~~~~~~~~ ^
- mbcopy.cc:1617:42: warning: Array access (via field 'beam_angle_forward') results in a null pointer dereference
- mb_ping->beam_angle_forward[i] = 0;
- ~~~~~~~~~~~~~~~~~~ ^
- mbcopy.cc:1621:34: warning: Array access (via field 'mr_amplitude') results in a null pointer dereference
- mb_ping->mr_amplitude[i] = istore->amp[i];
- ~~~~~~~~~~~~ ^
- mbcopy.cc:1695:11: warning: Value stored to 'status' is never read
- status = MB_FAILURE;
- ^ ~~~~~~~~~~
- mbcopy.cc:1737:3: warning: Value stored to 'status' is never read
- status &= mb_fbtversion(verbose, &fbtversion);
- ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- mbcopy.cc:2263:5: warning: Value stored to 'status' is never read
- status = mb_put_comment(verbose, ombio_ptr, comment, &error);
- ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- mbcopy.cc:2268:5: warning: Value stored to 'status' is never read
- status = mb_put_comment(verbose, ombio_ptr, comment, &error);
- ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- mbcopy.cc:2287:5: warning: Value stored to 'status' is never read
- status = mb_put_comment(verbose, ombio_ptr, comment, &error);
- ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- mbcopy.cc:2292:5: warning: Value stored to 'status' is never read
- status = mb_put_comment(verbose, ombio_ptr, comment, &error);
- ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- mbcopy.cc:2297:5: warning: Value stored to 'status' is never read
- status = mb_put_comment(verbose, ombio_ptr, comment, &error);
- ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- mbcopy.cc:2302:5: warning: Value stored to 'status' is never read
- status = mb_put_comment(verbose, ombio_ptr, comment, &error);
- ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- mbcopy.cc:2308:7: warning: Value stored to 'status' is never read
- status = mb_put_comment(verbose, ombio_ptr, comment, &error);
- ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- mbcopy.cc:2313:7: warning: Value stored to 'status' is never read
- status = mb_put_comment(verbose, ombio_ptr, comment, &error);
- ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- mbcopy.cc:2319:5: warning: Value stored to 'status' is never read
- status = mb_put_comment(verbose, ombio_ptr, comment, &error);
- ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- mbcopy.cc:2324:5: warning: Value stored to 'status' is never read
- status = mb_put_comment(verbose, ombio_ptr, comment, &error);
- ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- mbcopy.cc:2329:5: warning: Value stored to 'status' is never read
- status = mb_put_comment(verbose, ombio_ptr, comment, &error);
- ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- mbcopy.cc:2334:5: warning: Value stored to 'status' is never read
- status = mb_put_comment(verbose, ombio_ptr, comment, &error);
- ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- mbcopy.cc:2339:5: warning: Value stored to 'status' is never read
- status = mb_put_comment(verbose, ombio_ptr, comment, &error);
- ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- mbcopy.cc:2344:5: warning: Value stored to 'status' is never read
- status = mb_put_comment(verbose, ombio_ptr, comment, &error);
- ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- mbcopy.cc:2350:5: warning: Value stored to 'status' is never read
- status = mb_put_comment(verbose, ombio_ptr, comment, &error);
- ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- mbcopy.cc:2356:5: warning: Value stored to 'status' is never read
- status = mb_put_comment(verbose, ombio_ptr, comment, &error);
- ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- mbcopy.cc:2361:5: warning: Value stored to 'status' is never read
- status = mb_put_comment(verbose, ombio_ptr, comment, &error);
- ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- mbcopy.cc:2366:5: warning: Value stored to 'status' is never read
- status = mb_put_comment(verbose, ombio_ptr, comment, &error);
- ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- mbcopy.cc:2384:5: warning: Value stored to 'status' is never read
- status = MB_SUCCESS;
- ^ ~~~~~~~~~~
- mbcopy.cc:2495:25: warning: The right operand of '<' is a garbage value
- for (int j = 0; j < offset_bath; j++) {
- ^ ~~~~~~~~~~~
- mbcopy.cc:2530:25: warning: The right operand of '<' is a garbage value
- for (int j = 0; j < offset_amp; j++) {
- ^ ~~~~~~~~~~
- mbcopy.cc:2542:25: warning: The right operand of '<' is a garbage value
- for (int j = 0; j < offset_ss; j++) {
- ^ ~~~~~~~~~
- mbcopy.cc:2662:16: warning: 3rd function call argument is an uninitialized value
- status = mb_put_all(verbose, ombio_ptr, ostore_ptr, false, kind, time_i, time_d, navlon, navlat, speed, heading,
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- mbcopy.cc:2692:5: warning: Value stored to 'status' is never read
- status &= mb_memory_list(verbose, &error);
- ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 43 warnings generated.
- libtool: compile: /usr/share/clang/scan-build-9/bin/../libexec/c++-analyzer -DHAVE_CONFIG_H -I. -I../../src/mbio -I../../src/mbio -I../../src/mbaux -I../../src/gsf -I/usr/include/gmt -I/usr/include -g -O2 -MT mbcopy.lo -MD -MP -MF .deps/mbcopy.Tpo -c mbcopy.cc -o mbcopy.o >/dev/null 2>&1
- scan-build: 86 bugs found.
- scan-build: Run 'scan-view /tmp/scan-build-2019-12-28-001212-90305-1' to examine bug reports.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement