ERR: Remove warnings
This commit is contained in:
parent
8174deb9e9
commit
93f7601d0f
|
@ -691,6 +691,9 @@ yyparse(YYPARSE_PARAM_ARG)
|
||||||
fprintf(stderr, "Starting parse\n");
|
fprintf(stderr, "Starting parse\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
yylval.Number = 0;
|
||||||
|
yyval.Number = 0;
|
||||||
|
|
||||||
yystate = 0;
|
yystate = 0;
|
||||||
yyerrstatus = 0;
|
yyerrstatus = 0;
|
||||||
yynerrs = 0;
|
yynerrs = 0;
|
||||||
|
@ -712,7 +715,7 @@ yyparse(YYPARSE_PARAM_ARG)
|
||||||
have just been pushed. so pushing a state here evens the stacks. */
|
have just been pushed. so pushing a state here evens the stacks. */
|
||||||
yynewstate:
|
yynewstate:
|
||||||
|
|
||||||
*++yyssp = yystate;
|
*++yyssp = (short)yystate;
|
||||||
|
|
||||||
if (yyssp >= yyss + yystacksize - 1)
|
if (yyssp >= yyss + yystacksize - 1)
|
||||||
{
|
{
|
||||||
|
@ -1729,6 +1732,7 @@ static int
|
||||||
yyerror (s)
|
yyerror (s)
|
||||||
char *s ATTRIBUTE_UNUSED;
|
char *s ATTRIBUTE_UNUSED;
|
||||||
{
|
{
|
||||||
|
(void)s;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1792,7 +1796,7 @@ LookupWord (yylval, buff)
|
||||||
/* Make it lowercase. */
|
/* Make it lowercase. */
|
||||||
for (p = buff; *p; p++)
|
for (p = buff; *p; p++)
|
||||||
if (ISUPPER ((unsigned char) *p))
|
if (ISUPPER ((unsigned char) *p))
|
||||||
*p = tolower (*p);
|
*p = (char)tolower (*p);
|
||||||
|
|
||||||
if (strcmp (buff, "am") == 0 || strcmp (buff, "a.m.") == 0)
|
if (strcmp (buff, "am") == 0 || strcmp (buff, "a.m.") == 0)
|
||||||
{
|
{
|
||||||
|
|
|
@ -659,7 +659,7 @@ static int dprintf_formatf(
|
||||||
else
|
else
|
||||||
prec = -1;
|
prec = -1;
|
||||||
|
|
||||||
alt = p->flags & FLAGS_ALT;
|
alt = (char)(p->flags & FLAGS_ALT);
|
||||||
|
|
||||||
switch (p->type) {
|
switch (p->type) {
|
||||||
case FORMAT_INT:
|
case FORMAT_INT:
|
||||||
|
@ -707,7 +707,7 @@ static int dprintf_formatf(
|
||||||
{
|
{
|
||||||
signed_num = (long) num;
|
signed_num = (long) num;
|
||||||
|
|
||||||
is_neg = signed_num < 0;
|
is_neg = (char)(signed_num < 0);
|
||||||
num = is_neg ? (- signed_num) : signed_num;
|
num = is_neg ? (- signed_num) : signed_num;
|
||||||
}
|
}
|
||||||
goto number;
|
goto number;
|
||||||
|
@ -937,7 +937,7 @@ static int dprintf_formatf(
|
||||||
else if (!(p->flags & FLAGS_SHORT))
|
else if (!(p->flags & FLAGS_SHORT))
|
||||||
*(int *) p->data.ptr = done;
|
*(int *) p->data.ptr = done;
|
||||||
else
|
else
|
||||||
*(short int *) p->data.ptr = done;
|
*(short int *) p->data.ptr = (short int)done;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -1023,7 +1023,7 @@ static int alloc_addbyter(int output, FILE *data)
|
||||||
infop->alloc *= 2;
|
infop->alloc *= 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
infop->buffer[ infop->len ] = output;
|
infop->buffer[ infop->len ] = (char)output;
|
||||||
|
|
||||||
infop->len++;
|
infop->len++;
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
* $Id$
|
* $Id$
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
|
#include "setup.h"
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -65,6 +66,7 @@ gettimeofday (struct timeval *tp, void *nothing)
|
||||||
tp->tv_sec = Sec;
|
tp->tv_sec = Sec;
|
||||||
tp->tv_usec = Usec;
|
tp->tv_usec = Usec;
|
||||||
#endif
|
#endif
|
||||||
|
(void)nothing;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
#define HAVE_GETTIMEOFDAY
|
#define HAVE_GETTIMEOFDAY
|
||||||
|
|
Loading…
Reference in New Issue