all: fix or silence all INSTALL warnings on macOS
Should be a clean build now. Change-Id: Id3460371cb5e8d4071f8faa9c2aec870d213a067 Reviewed-on: https://plan9port-review.googlesource.com/2781 Reviewed-by: Russ Cox <rsc@swtch.com>
This commit is contained in:
parent
9e0d3750c5
commit
310ae03327
15 changed files with 106 additions and 87 deletions
|
|
@ -15,9 +15,6 @@ struct Node
|
|||
Reinst* last;
|
||||
}Node;
|
||||
|
||||
/* max character classes per program is nelem(reprog->class) */
|
||||
static Reprog *reprog;
|
||||
|
||||
/* max rune ranges per character class is nelem(classp->spans)/2 */
|
||||
#define NCCRUNE nelem(classp->spans)
|
||||
|
||||
|
|
@ -327,7 +324,7 @@ dump(Reprog *pp)
|
|||
static Reclass*
|
||||
newclass(void)
|
||||
{
|
||||
if(nclass >= nelem(reprog->class))
|
||||
if(nclass >= nelem(((Reprog*)0)->class))
|
||||
rcerror("too many character classes; increase Reprog.class size");
|
||||
return &(classp[nclass++]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue