Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 96 by
0x1...@googlemail.com: Either prototype functions or make
them static
http://code.google.com/p/serf/issues/detail?id=96
What steps will reproduce the problem?
1. compile with -Wmissing-prototypes
What is the expected output? What do you see instead?
expected: no warnings.
gcc -o buckets/buckets.o -c -g -O2 -std=c89 -Wall -Wmissing-prototypes
-pthread -D_REENTRANT -D_GNU_SOURCE -I. -I/usr/include -I/usr
/include/apr-1 buckets/buckets.c
buckets/buckets.c:579:6: warning: no previous prototype for 'serf__log'
[-Wmissing-prototypes]
buckets/buckets.c:595:6: warning: no previous prototype
for 'serf__log_nopref' [-Wmissing-prototypes]
buckets/buckets.c:606:6: warning: no previous prototype for 'serf__log_skt'
[-Wmissing-prototypes]
...
gcc -o buckets/response_buckets.o -c -g -O2 -std=c89 -Wall
-Wmissing-prototypes -pthread -D_REENTRANT -D_GNU_SOURCE -I. -I/usr/include
-I/usr/include/apr-1 buckets/response_buckets.c
buckets/response_buckets.c:419:14: warning: no previous prototype
for 'serf_response_full_become_aggregate' [-Wmissing-prototypes]
What version of the product are you using? On what operating system?
SVN-HEAD
Please provide any additional information below.
suggested patch to make these issues visible in future:
Index: SConstruct
===================================================================
--- SConstruct (revision 1825)
+++ SConstruct (working copy)
@@ -100,6 +100,7 @@
ccflags = ['-g', '-O2', '-std=c89', ]
if sys.platform != 'sunos5':
ccflags.append('-Wall')
+ ccflags.append('-Wmissing-prototypes')
libs = [ ]
if 1:
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings