[Mesa-dev] [PATCH] drm-atomic: Include <stdlib.h> header file

Emil Velikov emil.l.velikov at gmail.com
Fri Mar 10 15:30:49 UTC 2017


On 4 March 2017 at 15:01, Fabio Estevam <festevam at gmail.com> wrote:
> Include <stdlib.h> header file to fix the following build warning:
>
>   CC       kmscube-drm.o
> drm-atomic.c: In function 'init_drm_atomic':
> drm-atomic.c:346:14: warning: implicit declaration of function 'calloc' [-Wimplicit-function-declaration]
>   drm.plane = calloc(1, sizeof(*drm.plane));
>               ^
> drm-atomic.c:346:14: warning: incompatible implicit declaration of built-in function 'calloc'
> drm-atomic.c:346:14: note: include '<stdlib.h>' or provide a declaration of 'calloc'
>
> Signed-off-by: Fabio Estevam <festevam at gmail.com>
R-b and pushed to master.

Emil


More information about the mesa-dev mailing list