11141 libdtrace: NULL pointer errors

Review Request #1926 - Created June 1, 2019 and submitted

Information
Toomas Soome
illumos-gate
11141
f62e72c...
Reviewers
general
../common/dt_handle.c: In function 'dt_handle_liberr':
../common/dt_handle.c:250:17: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  err.dteda_addr = NULL;
                 ^

../common/dt_map.c: In function 'dt_aggid_add':
../common/dt_map.c:387:35: error: comparison between pointer and integer [-Werror]
       agg->dtagd_rec[0].dtrd_uarg != NULL) {
                                   ^~

../common/dt_module.c: In function 'dt_module_unload':
../common/dt_module.c:909:18: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  dmp->dm_text_va = NULL;
                  ^
../common/dt_module.c:911:18: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  dmp->dm_data_va = NULL;
                  ^
../common/dt_module.c:913:17: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  dmp->dm_bss_va = NULL;
                 ^

../common/dt_consume.c: In function 'dt_print_stack':
../common/dt_consume.c:1280:10: error: comparison between pointer and integer [-Werror]
   if (pc == NULL)
          ^~
../common/dt_consume.c: In function 'dt_print_ustack':
../common/dt_consume.c:1368:33: error: comparison between pointer and integer [-Werror]
  for (i = 0; i < depth && pc[i] != NULL; i++) {
                                 ^~
cc1: all warnings being treated as errors

  
John Levon
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...