Hi,
About the check I get the following results:
x==============
$ CC=gcc gmake check
gcc -c -o heap-test.o heap-test.c
gcc -c -o integ-test.o integ-test.c
gcc -c -o job-test.o job-test.c
gcc -c -o util-test.o util-test.c
ct/gen heap-test.o integ-test.o job-test.o util-test.o >ct/_ctcheck.c.part
no tests found
mv ct/_ctcheck.c.part ct/_ctcheck.c
gcc -c -o ct/_ctcheck.o ct/_ctcheck.c
gcc -c -o ct/ct.o ct/ct.c
gcc -lsocket -lnsl ct/_ctcheck.o ct/ct.o SunOS.o conn.o file.o heap.o
job.o ms.o net.o primes.o prot.o sd-daemon.o serv.o time.o tube.o util.o
vers.o walg.o heap-test.o integ-test.o job-test.o util-test.o -o
ct/_ctcheck
ct/_ctcheck
PASS
$
x==============
Is the "no test found" expected ?
About compiling with -Werror, here is the result:
x==============
$ CC=gcc gmake
gcc -Wall -Werror -Wformat=2 -g -c -o SunOS.o SunOS.c
gcc -Wall -Werror -Wformat=2 -g -c -o conn.o conn.c
conn.c: In function 'make_conn':
conn.c:37:13: error: return makes pointer from integer without a cast
[-Werror]
if (!c) return twarn("OOM"), NULL;
^
conn.c:42:9: error: return makes pointer from integer without a cast
[-Werror]
return twarn("OOM"), NULL;
^
cc1: all warnings being treated as errors
<builtin>: recipe for target 'conn.o' failed
gmake: *** [conn.o] Error 1
x==============
Without -Werror I get:
x==============
$ CC=gcc gmake
gcc -c -o SunOS.o SunOS.c
gcc -c -o conn.o conn.c
conn.c: In function 'make_conn':
conn.c:37:13: warning: return makes pointer from integer without a cast
[enabled by default]
if (!c) return twarn("OOM"), NULL;
^
conn.c:42:9: warning: return makes pointer from integer without a cast
[enabled by default]
return twarn("OOM"), NULL;
^
gcc -c -o file.o file.c
gcc -c -o heap.o heap.c
gcc -c -o job.o job.c
gcc -c -o ms.o ms.c
gcc -c -o net.o net.c
gcc -c -o primes.o primes.c
gcc -c -o prot.o prot.c
gcc -c -o sd-daemon.o sd-daemon.c
gcc -c -o serv.o serv.c
gcc -c -o time.o time.c
gcc -c -o tube.o tube.c
gcc -c -o util.o util.c
./verc.sh >vers.c
gcc -c -o vers.o vers.c
gcc -c -o walg.o walg.c
gcc -c -o main.o main.c
gcc -lsocket -lnsl -o beanstalkd SunOS.o conn.o file.o heap.o job.o ms.o
net.o primes.o prot.o sd-daemon.o serv.o time.o tube.o util.o vers.o walg.o
main.o
$
x==============
Thanks for your help.
--
You received this message because you are subscribed to the Google Groups
"beanstalk-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/beanstalk-talk.
For more options, visit https://groups.google.com/d/optout.