From 5ffe18d1643c22a50aaca342ddf585da8710670d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Mon, 26 Apr 2010 23:05:50 +0000 Subject: [PATCH] * StrBufTCP_read_buffered_line_fast(): silence warning of narrow minded compilers --- libcitadel/debian/rules | 4 ++-- libcitadel/lib/stringbuf.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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); -- 2.39.2