mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-31 10:30:33 +03:00 
			
		
		
		
	Big warnings cleanup for Solaris/GCC. Down to about 40 now, but
we'll get there one day. Use `cat' to create aclocal.m4, not `aclocal'. Some people don't have automake installed. Only run the autoconf rule in the top-level GNUmakefile if the invoker specified `make configure', don't run it automatically because of CVS timestamp skew.
This commit is contained in:
		| @@ -12,7 +12,7 @@ | ||||
|  * | ||||
|  * | ||||
|  * IDENTIFICATION | ||||
|  *	  $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.58 2000/04/05 09:05:34 meskes Exp $ | ||||
|  *	  $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.59 2000/06/14 18:17:54 petere Exp $ | ||||
|  * | ||||
|  *------------------------------------------------------------------------- | ||||
|  */ | ||||
| @@ -491,7 +491,7 @@ cppline			{space}*#(.*\\{line_end})*.* | ||||
| 					/* this should leave the last byte set to '\0' */ | ||||
| 					strncpy(lower_text, yytext, NAMEDATALEN-1); | ||||
| 					for(i = 0; lower_text[i]; i++) | ||||
| 						if (isascii((unsigned char)lower_text[i]) && isupper(lower_text[i])) | ||||
| 						if (isascii((int)lower_text[i]) && isupper((int) lower_text[i])) | ||||
| 							lower_text[i] = tolower(lower_text[i]); | ||||
|  | ||||
| 					if (i >= NAMEDATALEN) | ||||
| @@ -682,7 +682,7 @@ cppline			{space}*#(.*\\{line_end})*.* | ||||
|  | ||||
| 					    /* skip the ";" and trailing whitespace. Note that yytext contains | ||||
| 					       at least one non-space character plus the ";" */ | ||||
| 					    for ( i = strlen(yytext)-2; i > 0 && isspace(yytext[i]); i-- ) {} | ||||
| 					    for ( i = strlen(yytext)-2; i > 0 && isspace((int) yytext[i]); i-- ) {} | ||||
| 					    yytext[i+1] = '\0'; | ||||
|  | ||||
| 					    for ( defptr = defines; defptr != NULL && | ||||
| @@ -754,7 +754,7 @@ cppline			{space}*#(.*\\{line_end})*.* | ||||
|  | ||||
| 			  /* skip the ";" and trailing whitespace. Note that yytext contains | ||||
| 			     at least one non-space character plus the ";" */ | ||||
| 			  for ( i = strlen(yytext)-2; i > 0 && isspace(yytext[i]); i-- ) {} | ||||
| 			  for ( i = strlen(yytext)-2; i > 0 && isspace((int) yytext[i]); i-- ) {} | ||||
| 			  yytext[i+1] = '\0'; | ||||
|  | ||||
| 			  yyin = NULL; | ||||
|   | ||||
| @@ -8,7 +8,7 @@ | ||||
|  * | ||||
|  * | ||||
|  * IDENTIFICATION | ||||
|  *	  $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.129 2000/06/11 11:40:07 petere Exp $ | ||||
|  *	  $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.130 2000/06/14 18:17:58 petere Exp $ | ||||
|  * | ||||
|  *------------------------------------------------------------------------- | ||||
|  */ | ||||
| @@ -629,10 +629,7 @@ connectNoDelay(PGconn *conn) | ||||
| 	int			on = 1; | ||||
|  | ||||
| 	if (setsockopt(conn->sock, IPPROTO_TCP, TCP_NODELAY, | ||||
| #ifdef WIN32 | ||||
| 				   (char *) | ||||
| #endif | ||||
| 				   &on, | ||||
| 				   (char *) &on, | ||||
| 				   sizeof(on)) < 0) | ||||
| 	{ | ||||
| 		printfPQExpBuffer(&conn->errorMessage, | ||||
| @@ -1098,7 +1095,7 @@ keep_going:						/* We will come back to here until there | ||||
| 				 */ | ||||
|  | ||||
| 				if (getsockopt(conn->sock, SOL_SOCKET, SO_ERROR, | ||||
| 							   &optval, &optlen) == -1) | ||||
| 							   (char *) &optval, &optlen) == -1) | ||||
| 				{ | ||||
| 					printfPQExpBuffer(&conn->errorMessage, | ||||
| 							   "PQconnectPoll() -- getsockopt() failed: " | ||||
| @@ -2117,7 +2114,7 @@ conninfo_parse(const char *conninfo, PQExpBuffer errorMessage) | ||||
| 	while (*cp) | ||||
| 	{ | ||||
| 		/* Skip blanks before the parameter name */ | ||||
| 		if (isspace(*cp)) | ||||
| 		if (isspace((int) *cp)) | ||||
| 		{ | ||||
| 			cp++; | ||||
| 			continue; | ||||
| @@ -2129,12 +2126,12 @@ conninfo_parse(const char *conninfo, PQExpBuffer errorMessage) | ||||
| 		{ | ||||
| 			if (*cp == '=') | ||||
| 				break; | ||||
| 			if (isspace(*cp)) | ||||
| 			if (isspace((int) *cp)) | ||||
| 			{ | ||||
| 				*cp++ = '\0'; | ||||
| 				while (*cp) | ||||
| 				{ | ||||
| 					if (!isspace(*cp)) | ||||
| 					if (!isspace((int) *cp)) | ||||
| 						break; | ||||
| 					cp++; | ||||
| 				} | ||||
| @@ -2158,7 +2155,7 @@ conninfo_parse(const char *conninfo, PQExpBuffer errorMessage) | ||||
| 		/* Skip blanks after the '=' */ | ||||
| 		while (*cp) | ||||
| 		{ | ||||
| 			if (!isspace(*cp)) | ||||
| 			if (!isspace((int) *cp)) | ||||
| 				break; | ||||
| 			cp++; | ||||
| 		} | ||||
| @@ -2171,7 +2168,7 @@ conninfo_parse(const char *conninfo, PQExpBuffer errorMessage) | ||||
| 			cp2 = pval; | ||||
| 			while (*cp) | ||||
| 			{ | ||||
| 				if (isspace(*cp)) | ||||
| 				if (isspace((int) *cp)) | ||||
| 				{ | ||||
| 					*cp++ = '\0'; | ||||
| 					break; | ||||
|   | ||||
| @@ -8,7 +8,7 @@ | ||||
|  * | ||||
|  * | ||||
|  * IDENTIFICATION | ||||
|  *	  $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.95 2000/05/25 19:09:55 momjian Exp $ | ||||
|  *	  $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.96 2000/06/14 18:17:58 petere Exp $ | ||||
|  * | ||||
|  *------------------------------------------------------------------------- | ||||
|  */ | ||||
| @@ -1955,8 +1955,8 @@ PQfnumber(const PGresult *res, const char *field_name) | ||||
| 	} | ||||
| 	else | ||||
| 		for (i = 0; field_case[i]; i++) | ||||
| 			if (isascii((unsigned char) field_case[i]) && | ||||
| 				isupper(field_case[i])) | ||||
| 			if (isascii((int) field_case[i]) && | ||||
| 				isupper((int) field_case[i])) | ||||
| 				field_case[i] = tolower(field_case[i]); | ||||
|  | ||||
| 	for (i = 0; i < res->numAttributes; i++) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user