* StrBufTCP_read_buffered_line_fast(): silence warning of narrow minded compilers
authorWilfried Göesgens <willi@citadel.org>
Mon, 26 Apr 2010 23:05:50 +0000 (23:05 +0000)
committerWilfried Göesgens <willi@citadel.org>
Mon, 26 Apr 2010 23:05:50 +0000 (23:05 +0000)
libcitadel/debian/rules
libcitadel/lib/stringbuf.c

index 343c7a9c8494d05b08b9a25709585e8a4bee801c..e49968df514cefc6762a4483e462f6d64a7c87c6 100755 (executable)
@@ -9,8 +9,8 @@ export DH_COMPAT = 5
 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
-CFLAGS = -Wall -g
-LDFALGS = 
+CFLAGS = -Wall -g -finline-functions
+LDFALGS = -finline-functions
 ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
        CFLAGS += -O0 -ggdb -rdynamic -MD -MP -D DEBUG -D VALGRIND
        EXTRA_ARGS =  --with-backtrace
index b96f227697baa79bae078dcf18ce13a23bfbdaba..01555c4458a694b550d91d4bc891dc3fb736da34 100644 (file)
@@ -3390,7 +3390,7 @@ int StrBufTCP_read_buffered_line_fast(StrBuf *Line,
 
                        if (IOBuf->BufUsed + 10 > IOBuf->BufSize)
                        {
-                               long apos;
+                               long apos = 0;
 
                                if (pLF != NULL) apos = pLF - IOBuf->buf;
                                IncreaseBuf(IOBuf, 1, -1);