crunchgen: fix remaining issues under WARNS=6
Entirely variables that should be static, save for one 'no previous declaration' in mkskel.sh. Reviewed by: arichardson, imp Differential Revision: https://reviews.freebsd.org/D31610
This commit is contained in:
parent
7ff87026d6
commit
bfd70233c3
@ -85,27 +85,28 @@ typedef struct prog {
|
||||
|
||||
/* global state */
|
||||
|
||||
strlst_t *buildopts = NULL;
|
||||
strlst_t *srcdirs = NULL;
|
||||
strlst_t *libs = NULL;
|
||||
strlst_t *libs_so = NULL;
|
||||
prog_t *progs = NULL;
|
||||
static strlst_t *buildopts = NULL;
|
||||
static strlst_t *srcdirs = NULL;
|
||||
static strlst_t *libs = NULL;
|
||||
static strlst_t *libs_so = NULL;
|
||||
static prog_t *progs = NULL;
|
||||
|
||||
char confname[MAXPATHLEN], infilename[MAXPATHLEN];
|
||||
char outmkname[MAXPATHLEN], outcfname[MAXPATHLEN], execfname[MAXPATHLEN];
|
||||
char tempfname[MAXPATHLEN], cachename[MAXPATHLEN], curfilename[MAXPATHLEN];
|
||||
bool tempfname_initialized = false;
|
||||
char outhdrname[MAXPATHLEN] ; /* user-supplied header for *.mk */
|
||||
const char *objprefix; /* where are the objects ? */
|
||||
const char *path_make;
|
||||
int linenum = -1;
|
||||
int goterror = 0;
|
||||
static char confname[MAXPATHLEN], infilename[MAXPATHLEN];
|
||||
static char outmkname[MAXPATHLEN], outcfname[MAXPATHLEN], execfname[MAXPATHLEN];
|
||||
static char tempfname[MAXPATHLEN], cachename[MAXPATHLEN];
|
||||
static char curfilename[MAXPATHLEN];
|
||||
static bool tempfname_initialized = false;
|
||||
static char outhdrname[MAXPATHLEN] ; /* user-supplied header for *.mk */
|
||||
static const char *objprefix; /* where are the objects ? */
|
||||
static const char *path_make;
|
||||
static int linenum = -1;
|
||||
static int goterror = 0;
|
||||
|
||||
int verbose, readcache; /* options */
|
||||
int reading_cache;
|
||||
int makeobj = 0; /* add 'make obj' rules to the makefile */
|
||||
static int verbose, readcache; /* options */
|
||||
static int reading_cache;
|
||||
static int makeobj = 0; /* add 'make obj' rules to the makefile */
|
||||
|
||||
int list_mode;
|
||||
static int list_mode;
|
||||
|
||||
/* general library routines */
|
||||
|
||||
|
@ -4,6 +4,7 @@
|
||||
cat <<!EOF
|
||||
/* File created via mkskel.sh */
|
||||
|
||||
extern const char *crunched_skel[];
|
||||
const char *crunched_skel[] = {
|
||||
!EOF
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user