cdecl: fix gcc6 build

This commit is contained in:
Juergen Buchmueller 2016-10-21 12:31:52 +02:00
parent 03561907ef
commit 2b18d6b04b
2 changed files with 54 additions and 1 deletions

View File

@ -0,0 +1,53 @@
--- cdecl.c 2009-10-20 11:25:25.000000000 +0200
+++ cdecl.c 2016-10-21 12:29:34.791599362 +0200
@@ -245,7 +245,7 @@
/* for unsupported combinations of types. */
void mbcheck()
{
- register int i, j, restrict;
+ register int i, j, restr;
char *t1, *t2;
/* Loop through the types */
@@ -262,26 +262,26 @@
if (!(modbits & crosstypes[j].bit))
continue;
/* check the type of restriction */
- restrict = crosscheck[i][j];
- if (restrict == ALWAYS)
+ restr = crosscheck[i][j];
+ if (restr == ALWAYS)
continue;
t1 = crosstypes[i].name;
t2 = crosstypes[j].name;
- if (restrict == NEVER)
+ if (restr == NEVER)
{
notsupported("", t1, t2);
}
- else if (restrict == RITCHIE)
+ else if (restr == RITCHIE)
{
if (RitchieFlag)
notsupported(" (Ritchie Compiler)", t1, t2);
}
- else if (restrict == PREANSI)
+ else if (restr == PREANSI)
{
if (PreANSIFlag || RitchieFlag)
notsupported(" (Pre-ANSI Compiler)", t1, t2);
}
- else if (restrict == ANSI)
+ else if (restr == ANSI)
{
if (!RitchieFlag && !PreANSIFlag)
notsupported(" (ANSI Compiler)", t1, t2);
@@ -290,7 +290,7 @@
{
(void) fprintf (stderr,
"%s: Internal error in crosscheck[%d,%d]=%d!\n",
- progname, i, j, restrict);
+ progname, i, j, restr);
exit(1); /* NOTREACHED */
}
}

View File

@ -1,7 +1,7 @@
# Template file for 'cdecl'
pkgname=cdecl
version=2.5
revision=2
revision=3
wrksrc="${pkgname}-blocks-${version}"
build_style=gnu-makefile
make_build_args="-e"