Add missing include
This fixes these warnings:
/home/pswartva/chameleon/build/compute/sgram.c: In function ‘CHAMELEON_sgram_WS_Alloc’:
/home/pswartva/chameleon/build/compute/sgram.c:56:15: warning: implicit declaration of function ‘calloc’ [-Wimplicit-function-declaration]
56 | options = calloc( 1, sizeof(struct chameleon_psgram_s) );
| ^~~~~~
/home/pswartva/chameleon/build/compute/sgram.c:56:15: warning: incompatible implicit declaration of built-in function ‘calloc’
/home/pswartva/chameleon/build/compute/sgram.c:20:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘calloc’
19 | #include "control/common.h"
+++ |+#include <stdlib.h>
20 |
/home/pswartva/chameleon/build/compute/sgram.c: In function ‘CHAMELEON_sgram_WS_Free’:
/home/pswartva/chameleon/build/compute/sgram.c:101:5: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
101 | free( ws );
| ^~~~
/home/pswartva/chameleon/build/compute/sgram.c:101:5: warning: incompatible implicit declaration of built-in function ‘free’
/home/pswartva/chameleon/build/compute/sgram.c:101:5: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
/home/pswartva/chameleon/build/compute/cgram.c: In function ‘CHAMELEON_cgram_WS_Alloc’:
/home/pswartva/chameleon/build/compute/cgram.c:56:15: warning: implicit declaration of function ‘calloc’ [-Wimplicit-function-declaration]
56 | options = calloc( 1, sizeof(struct chameleon_pcgram_s) );
| ^~~~~~
/home/pswartva/chameleon/build/compute/cgram.c:56:15: warning: incompatible implicit declaration of built-in function ‘calloc’
/home/pswartva/chameleon/build/compute/cgram.c:20:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘calloc’
19 | #include "control/common.h"
+++ |+#include <stdlib.h>
20 |
/home/pswartva/chameleon/build/compute/cgram.c: In function ‘CHAMELEON_cgram_WS_Free’:
/home/pswartva/chameleon/build/compute/cgram.c:101:5: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
101 | free( ws );
| ^~~~
/home/pswartva/chameleon/build/compute/cgram.c:101:5: warning: incompatible implicit declaration of built-in function ‘free’
/home/pswartva/chameleon/build/compute/cgram.c:101:5: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
/home/pswartva/chameleon/build/compute/zgram.c: In function ‘CHAMELEON_zgram_WS_Alloc’:
/home/pswartva/chameleon/build/compute/zgram.c:56:15: warning: implicit declaration of function ‘calloc’ [-Wimplicit-function-declaration]
56 | options = calloc( 1, sizeof(struct chameleon_pzgram_s) );
| ^~~~~~
/home/pswartva/chameleon/build/compute/zgram.c:56:15: warning: incompatible implicit declaration of built-in function ‘calloc’
/home/pswartva/chameleon/build/compute/zgram.c:20:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘calloc’
19 | #include "control/common.h"
+++ |+#include <stdlib.h>
20 |
/home/pswartva/chameleon/build/compute/zgram.c: In function ‘CHAMELEON_zgram_WS_Free’:
/home/pswartva/chameleon/build/compute/zgram.c:101:5: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
101 | free( ws );
| ^~~~
/home/pswartva/chameleon/build/compute/zgram.c:101:5: warning: incompatible implicit declaration of built-in function ‘free’
/home/pswartva/chameleon/build/compute/zgram.c:101:5: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
/home/pswartva/chameleon/build/compute/dgram.c: In function ‘CHAMELEON_dgram_WS_Alloc’:
/home/pswartva/chameleon/build/compute/dgram.c:56:15: warning: implicit declaration of function ‘calloc’ [-Wimplicit-function-declaration]
56 | options = calloc( 1, sizeof(struct chameleon_pdgram_s) );
| ^~~~~~
/home/pswartva/chameleon/build/compute/dgram.c:56:15: warning: incompatible implicit declaration of built-in function ‘calloc’
/home/pswartva/chameleon/build/compute/dgram.c:20:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘calloc’
19 | #include "control/common.h"
+++ |+#include <stdlib.h>
20 |
/home/pswartva/chameleon/build/compute/dgram.c: In function ‘CHAMELEON_dgram_WS_Free’:
/home/pswartva/chameleon/build/compute/dgram.c:101:5: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
101 | free( ws );
| ^~~~
/home/pswartva/chameleon/build/compute/dgram.c:101:5: warning: incompatible implicit declaration of built-in function ‘free’
/home/pswartva/chameleon/build/compute/dgram.c:101:5: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
Merge request reports
Activity
Please register or sign in to reply