... | ... |
@@ -246,8 +246,9 @@ ifeq ($(ARCH), sparc64) |
246 | 246 |
#if gcc |
247 | 247 |
ifeq ($(CC_NAME), gcc) |
248 | 248 |
#common stuff |
249 |
- CFLAGS=-O9 -funroll-loops -Wcast-align $(PROFILE) -Winline\ |
|
250 |
- #-Wmissing-prototypes \ |
|
249 |
+ CFLAGS=-O9 -funroll-loops $(PROFILE) -Winline\ |
|
250 |
+ -Wmissing-prototypes -Wall\ |
|
251 |
+ -Wcast-align \ |
|
251 | 252 |
#if gcc 3.0 |
252 | 253 |
ifeq ($(CC_SHORTVER), 3.0) |
253 | 254 |
#use 32bit for now |
... | ... |
@@ -197,8 +197,9 @@ int parse_headers(struct sip_msg* msg, int flags, int next) |
197 | 197 |
if (next) { |
198 | 198 |
orig_flag = msg->parsed_flag; |
199 | 199 |
msg->parsed_flag &= ~flags; |
200 |
- } |
|
201 |
- |
|
200 |
+ }else |
|
201 |
+ orig_flag=0; |
|
202 |
+ |
|
202 | 203 |
DBG("parse_headers: flags=%d\n", flags); |
203 | 204 |
while( tmp<end && (flags & msg->parsed_flag) != flags){ |
204 | 205 |
hf=pkg_malloc(sizeof(struct hdr_field)); |