P
Pushker Pradhan
I've a function which accepts void * as the arg because the actual datatype
can be char or float or anything.
The fuction:
void convolve(void *x, float *convx, uint32 numrowsx, uint32 numcolsx, float
*h,
uint32 hlen, dwt_process ROWSORCOLS)
Usage in main()
convolve((float*)x, xLP, tileLength, tileWidth, ld, filterlen, DWT_ROWS);
However I get these compile errors
Redstone[93] pushkar$ gcc -g -o main dwt.c convolve.c dnsample.c
getWaveletCoeffs.c -ltiff -lm
convolve.c: In function `convolve':
convolve.c:46: warning: dereferencing `void *' pointer
convolve.c:46: void value not ignored as it ought to be
convolve.c:62: warning: dereferencing `void *' pointer
convolve.c:62: void value not ignored as it ought to be
Can anyone tell what's wrong with my code? Thanks,
can be char or float or anything.
The fuction:
void convolve(void *x, float *convx, uint32 numrowsx, uint32 numcolsx, float
*h,
uint32 hlen, dwt_process ROWSORCOLS)
Usage in main()
convolve((float*)x, xLP, tileLength, tileWidth, ld, filterlen, DWT_ROWS);
However I get these compile errors
Redstone[93] pushkar$ gcc -g -o main dwt.c convolve.c dnsample.c
getWaveletCoeffs.c -ltiff -lm
convolve.c: In function `convolve':
convolve.c:46: warning: dereferencing `void *' pointer
convolve.c:46: void value not ignored as it ought to be
convolve.c:62: warning: dereferencing `void *' pointer
convolve.c:62: void value not ignored as it ought to be
Can anyone tell what's wrong with my code? Thanks,