Issue 96 in serf: Either prototype functions or make them static

0 views
Skip to first unread message

se...@googlecode.com

unread,
May 6, 2013, 10:09:52 AM5/6/13
to serf...@googlegroups.com
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

se...@googlecode.com

unread,
May 20, 2013, 7:27:44 AM5/20/13
to serf...@googlegroups.com
Updates:
Status: Fixed

Comment #1 on issue 96 by lieven....@gmail.com: Either prototype
Issue is solved with r1861 and r1863. Thanks for the suggestion!
Reply all
Reply to author
Forward
0 new messages