From: Wilfried Göesgens Date: Mon, 26 Apr 2010 23:05:50 +0000 (+0000) Subject: * StrBufTCP_read_buffered_line_fast(): silence warning of narrow minded compilers X-Git-Tag: v7.86~245 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=5ffe18d1643c22a50aaca342ddf585da8710670d * StrBufTCP_read_buffered_line_fast(): silence warning of narrow minded compilers --- diff --git a/libcitadel/debian/rules b/libcitadel/debian/rules index 343c7a9c8..e49968df5 100755 --- a/libcitadel/debian/rules +++ b/libcitadel/debian/rules @@ -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 diff --git a/libcitadel/lib/stringbuf.c b/libcitadel/lib/stringbuf.c index b96f22769..01555c445 100644 --- a/libcitadel/lib/stringbuf.c +++ b/libcitadel/lib/stringbuf.c @@ -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);