10875 arn: comparison between pointer and integer

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

Information
Toomas Soome
illumos-gate
10875
14c866e...
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/vm/seg.h:43,
                 from ../../common/vm/as.h:47,
                 from ../../common/sys/devops.h:37,
                 from ../../common/sys/sunddi.h:39,
                 from ../../common/sys/mac.h:33,
                 from ../../common/sys/net80211.h:45,
                 from ../../common/io/arn/arn_core.h:31,
                 from ../../common/io/arn/arn_recv.c:24:
../../common/io/arn/arn_recv.c: In function 'arn_rx_handler':
../../common/io/arn/arn_recv.c:450:41: error: comparison between pointer and integer [-Werror]
   ASSERT(bf->bf_dma.cookie.dmac_address != 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

  
x void
Gergő Mihály Doma
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...