@@ -246,8 +246,9 @@ ifeq ($(ARCH), sparc64)
#if gcc
ifeq ($(CC_NAME), gcc)
#common stuff
- CFLAGS=-O9 -funroll-loops -Wcast-align $(PROFILE) -Winline\
- #-Wmissing-prototypes \
+ CFLAGS=-O9 -funroll-loops $(PROFILE) -Winline\
+ -Wmissing-prototypes -Wall\
+ -Wcast-align \
#if gcc 3.0
ifeq ($(CC_SHORTVER), 3.0)
#use 32bit for now
@@ -197,8 +197,9 @@ int parse_headers(struct sip_msg* msg, int flags, int next)
if (next) {
orig_flag = msg->parsed_flag;
msg->parsed_flag &= ~flags;
- }
-
+ }else
+ orig_flag=0;
+
DBG("parse_headers: flags=%d\n", flags);
while( tmp<end && (flags & msg->parsed_flag) != flags){
hf=pkg_malloc(sizeof(struct hdr_field));
@@ -7,7 +7,7 @@
debug=9 # debug level (cmd line: -dddddddddd)
fork=yes # (cmd. line: -D)
-#fork=no
+fork=no
log_stderror=yes # (cmd line: -E)
#log_stderror=no # (cmd line: -E)