10866 dls: comparison between pointer and integer

Review Request #1799 - Created April 28, 2019 and submitted

Information
Toomas Soome
illumos-gate
10866
55a4662...
Reviewers
general
In file included from ../../common/sys/model.h:35:0,
                 from ../../common/sys/resource.h:221,
                 from ../../common/sys/vnode.h:51,
                 from ../../common/sys/door.h:62,
                 from ../../common/io/dls/dls_mgmt.c:34:
../../common/io/dls/dls_mgmt.c: In function 'dls_devnet_unset':
../../common/io/dls/dls_mgmt.c:957:51: error: comparison between pointer and integer [-Werror]
   ASSERT(ddp->dd_tref == 0 && ddp->dd_prop_taskid == NULL);
                                                   ^
../../common/sys/debug.h:59:29: note: in definition of macro 'ASSERT'
 #define ASSERT(EX) ((void)((EX) || assfail(#EX, __FILE__, __LINE__)))
                             ^~
cc1: all warnings being treated as errors

  
Robert Mustacchi
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...