Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#20 test/Judy1LHTime.c fails to compile in 1.0.4

open
nobody
None
5
2007-08-14
2007-08-14
Anonymous
No

There's an inline variable declaration which causes compilation to fail. As it is, it's valid C++, but not valid standard C. Moving the "int Rc" to the declaration section of the function fixes the problem.

cc -O -I../src Judy1LHTime.c -DNOINLINE -o Judy1LHTime ../src/obj/.libs/libJudy.a -lm
Judy1LHTime.c: In function `TestJudyPrev':
Judy1LHTime.c:1832: parse error before `int'
Judy1LHTime.c:1838: `Rc' undeclared (first use in this function)
Judy1LHTime.c:1838: (Each undeclared identifier is reported only once
Judy1LHTime.c:1838: for each function it appears in.)
=== 0 Failed: cc Judy1LHTime.c
PASS: Checkit
==================
All 1 tests passed
==================

Discussion