When we were porting our C libraries to GNU C, we encountered the following
problem:
GCC VERSION: GNU C 3.2.1
MACHINETYPE: Sun Sparc station IPX (sun4c)
OS VERSION: sunos 4.1.3
CONFIGURATION: sparc-sun-sunos4.3.1
CHANGES TO GCC: none
COMMANDLINE ARGUMENTS: gcc -c tgcc.c
When compiling undermentioned program GNU C produces the following Warning:
tgcc: In function 'main':
tgcc[A.c: In function 'main':[B[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D.c:10: warning: passing arg 1 of 'test_voidpp' from incompatible pointer type
To my knowledge this is wrong. A cast from pointer to pointer to int is
compatible with a pointer to a pointer to a void.
We could change void ** to void *, but then we can pass 'intp' without '&' to