tests: be strict about types

* tests/actions.at, tests/c++.at, tests/cxx-type.at,
* tests/glr-regression.at, tests/local.at, tests/torture.at,
* tests/types.at:
Pay stricter attention to types to avoid warnings.
This commit is contained in:
Akim Demaille
2018-10-22 11:15:02 +02:00
parent 0021bc3e28
commit b4b8666e4a
7 changed files with 25 additions and 28 deletions

View File

@@ -137,9 +137,6 @@ main (int argc, char **argv)
]AT_YYLEX_PROTOTYPE[
{
char buffer[256];
int c;
unsigned i;
static int lineNum = 1;
static int colNum = 0;
@@ -152,6 +149,7 @@ main (int argc, char **argv)
while (1)
{
int c;
assert (!feof (stdin));
c = getchar ();
switch (c)
@@ -175,11 +173,12 @@ main (int argc, char **argv)
yylloc.first_column = colNum;]])[
if (isalpha (c))
{
i = 0;
char buffer[256];
unsigned i = 0;
do
{
buffer[i++] = c;
buffer[i++] = (char) c;
colNum += 1;
assert (i != sizeof buffer - 1);
c = getchar ();