Browse code

- warning fixes

Andrei Pelinescu-Onciul authored on 10/09/2002 10:02:46
Showing 3 changed files
... ...
@@ -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));
... ...
@@ -7,7 +7,7 @@
7 7
 
8 8
 debug=9          # debug level (cmd line: -dddddddddd)
9 9
 fork=yes          # (cmd. line: -D)
10
-#fork=no
10
+fork=no
11 11
 log_stderror=yes # (cmd line: -E)
12 12
 #log_stderror=no	# (cmd line: -E)
13 13