10873 ecpp: comparison between pointer and integer

Review Request #1807 — Created April 28, 2019 and submitted

tsoome
illumos-gate
10873
09ba64c...
general
In file included from ../../common/sys/model.h:35:0,
                 from ../../common/sys/file.h:37,
                 from ../../common/io/ecpp.c:35:
../../common/io/ecpp.c: In function 'dma8237_dma_start':
../../common/io/ecpp.c:5946:34: error: comparison between pointer and integer [-
Werror]
      pp->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__)))
                             ^~
../../common/io/ecpp.c: In function 'x86_dma_start':
../../common/io/ecpp.c:6019:34: error: comparison between pointer and integer [-
Werror]
      pp->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


xvoid
  1. Ship It!
  2. 
      
rejohnst
  1. Ship It!
  2. 
      
tsoome
Review request changed

Status: Closed (submitted)

Loading...