[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gcl-devel] gcl-cvs, Tiger, num_sfun.c
From: |
Clemens Heitzinger |
Subject: |
[Gcl-devel] gcl-cvs, Tiger, num_sfun.c |
Date: |
Tue, 10 May 2005 19:57:20 -0700 |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gcl-devel] gcl-cvs, Tiger, num_sfun.c,
Clemens Heitzinger <=