summaryrefslogtreecommitdiffstats
path: root/Source/CTest
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-05-01 15:33:54 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-05-01 15:33:54 (GMT)
commit93f7601d0f8edaadbfe72eca546c30a42a53a25c (patch)
tree52fd088f278fcf8f5b98f6817eb8ef81b0915eef /Source/CTest
parent8174deb9e998199fc4aa828664d57dedc3f8a683 (diff)
downloadCMake-93f7601d0f8edaadbfe72eca546c30a42a53a25c.zip
CMake-93f7601d0f8edaadbfe72eca546c30a42a53a25c.tar.gz
CMake-93f7601d0f8edaadbfe72eca546c30a42a53a25c.tar.bz2
ERR: Remove warnings
Diffstat (limited to 'Source/CTest')
-rw-r--r--Source/CTest/Curl/getdate.c8
-rw-r--r--Source/CTest/Curl/mprintf.c8
-rw-r--r--Source/CTest/Curl/timeval.c2
3 files changed, 12 insertions, 6 deletions
diff --git a/Source/CTest/Curl/getdate.c b/Source/CTest/Curl/getdate.c
index dab41be..fe00823 100644
--- a/Source/CTest/Curl/getdate.c
+++ b/Source/CTest/Curl/getdate.c
@@ -691,6 +691,9 @@ yyparse(YYPARSE_PARAM_ARG)
fprintf(stderr, "Starting parse\n");
#endif
+ yylval.Number = 0;
+ yyval.Number = 0;
+
yystate = 0;
yyerrstatus = 0;
yynerrs = 0;
@@ -712,7 +715,7 @@ yyparse(YYPARSE_PARAM_ARG)
have just been pushed. so pushing a state here evens the stacks. */
yynewstate:
- *++yyssp = yystate;
+ *++yyssp = (short)yystate;
if (yyssp >= yyss + yystacksize - 1)
{
@@ -1729,6 +1732,7 @@ static int
yyerror (s)
char *s ATTRIBUTE_UNUSED;
{
+ (void)s;
return 0;
}
@@ -1792,7 +1796,7 @@ LookupWord (yylval, buff)
/* Make it lowercase. */
for (p = buff; *p; p++)
if (ISUPPER ((unsigned char) *p))
- *p = tolower (*p);
+ *p = (char)tolower (*p);
if (strcmp (buff, "am") == 0 || strcmp (buff, "a.m.") == 0)
{
diff --git a/Source/CTest/Curl/mprintf.c b/Source/CTest/Curl/mprintf.c
index 4d3630a..e81cc7d 100644
--- a/Source/CTest/Curl/mprintf.c
+++ b/Source/CTest/Curl/mprintf.c
@@ -659,7 +659,7 @@ static int dprintf_formatf(
else
prec = -1;
- alt = p->flags & FLAGS_ALT;
+ alt = (char)(p->flags & FLAGS_ALT);
switch (p->type) {
case FORMAT_INT:
@@ -707,7 +707,7 @@ static int dprintf_formatf(
{
signed_num = (long) num;
- is_neg = signed_num < 0;
+ is_neg = (char)(signed_num < 0);
num = is_neg ? (- signed_num) : signed_num;
}
goto number;
@@ -937,7 +937,7 @@ static int dprintf_formatf(
else if (!(p->flags & FLAGS_SHORT))
*(int *) p->data.ptr = done;
else
- *(short int *) p->data.ptr = done;
+ *(short int *) p->data.ptr = (short int)done;
break;
default:
@@ -1023,7 +1023,7 @@ static int alloc_addbyter(int output, FILE *data)
infop->alloc *= 2;
}
- infop->buffer[ infop->len ] = output;
+ infop->buffer[ infop->len ] = (char)output;
infop->len++;
diff --git a/Source/CTest/Curl/timeval.c b/Source/CTest/Curl/timeval.c
index 7ed6051..3f55deb 100644
--- a/Source/CTest/Curl/timeval.c
+++ b/Source/CTest/Curl/timeval.c
@@ -21,6 +21,7 @@
* $Id$
***************************************************************************/
+#include "setup.h"
#ifdef WIN32
#include <windows.h>
#endif
@@ -65,6 +66,7 @@ gettimeofday (struct timeval *tp, void *nothing)
tp->tv_sec = Sec;
tp->tv_usec = Usec;
#endif
+ (void)nothing;
return 1;
}
#define HAVE_GETTIMEOFDAY