Here we go with the next problem.
Btw, this is with gcc version 4.0.0 20041026 (Apple Computer, Inc. build 4061)
gcc -no-cpp-precomp -c -Wall -DVOL=volatile -fsigned-char -pipe -O3 - fomit-frame-pointer -I/Users/Clemens/src/gcl-cvs/o -I../h -I../gcl- tk num_sfun.c
num_sfun.c: In function 'number_exp':
num_sfun.c:67: error: invalid storage class for function 'number_sin'
num_sfun.c:67: error: invalid storage class for function 'number_cos'
num_sfun.c: In function 'number_expt':
num_sfun.c:96: error: invalid storage class for function 'number_nlog'
num_sfun.c: In function 'number_nlog':
num_sfun.c:180: error: invalid storage class for function 'number_sqrt'
num_sfun.c:180: error: invalid storage class for function 'number_atan2'
make[1]: *** [num_sfun.o] Error 1
make: *** [unixport/saved_pre_gcl] Error 2
It is a violation of the C standard to declare a static function inside another function and gcc-4.0 enforces this.
The patch just removes the static declarations. Please review.
gcl-o-num-sfun.diffu
Description: Binary data_______________________________________________ Gcl-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/gcl-devel
