Actions
Bug #10627
closedpcic: NULL pointer errors
Start date:
2019-04-01
Due date:
% Done:
100%
Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
Description
Build errors with NULL pointer:
../../common/io/pcic.c: In function 'pcic_set_window': ../../common/io/pcic.c:2830:20: error: assignment makes integer from pointer without a cast [-Werror=int-conversion] memp->pcw_base = NULL; ^ In file included from ../../common/sys/param.h:48:0, from ../../common/io/pcic.c:48: ../../common/sys/null.h:32:14: error: passing argument 8 of 'pcmcia_map_reg' makes integer from pointer without a cast [-Werror=int-conversion] #define NULL ((void *)0) ^ ../../common/io/pcic.c:2889:24: note: in expansion of macro 'NULL' &window->attr, NULL); ^~~~ In file included from ../../common/io/pcic.c:75:0: ../../common/sys/sservice.h:578:5: note: expected 'uint32_t {aka unsigned int}' but argument is of type 'void *' int pcmcia_map_reg(dev_info_t *, dev_info_t *, ra_return_t *, ^~~~~~~~~~~~~~ cc1: all warnings being treated as errors
Actions