mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-17 13:53:39 +00:00
In the 17 years since r30796, the mandatory keyword has never been used
in any files as far as I can tell, and is currently unused. Retire it.
This commit is contained in:
parent
c79e3e3d8b
commit
5da753bc0a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=261436
|
@ -299,7 +299,7 @@ read_file(char *fname)
|
|||
char *wd, *this, *compilewith, *depends, *clean, *warning;
|
||||
const char *objprefix;
|
||||
int compile, match, nreqs, std, filetype,
|
||||
imp_rule, no_obj, before_depend, mandatory, nowerror;
|
||||
imp_rule, no_obj, before_depend, nowerror;
|
||||
|
||||
fp = fopen(fname, "r");
|
||||
if (fp == 0)
|
||||
|
@ -307,7 +307,7 @@ read_file(char *fname)
|
|||
next:
|
||||
/*
|
||||
* include "filename"
|
||||
* filename [ standard | mandatory | optional ]
|
||||
* filename [ standard | optional ]
|
||||
* [ dev* [ | dev* ... ] | profiling-routine ] [ no-obj ]
|
||||
* [ compile-with "compile rule" [no-implicit-rule] ]
|
||||
* [ dependency "dependency-list"] [ before-depend ]
|
||||
|
@ -358,7 +358,7 @@ read_file(char *fname)
|
|||
depends = 0;
|
||||
clean = 0;
|
||||
warning = 0;
|
||||
std = mandatory = 0;
|
||||
std = 0;
|
||||
imp_rule = 0;
|
||||
no_obj = 0;
|
||||
before_depend = 0;
|
||||
|
@ -367,16 +367,9 @@ read_file(char *fname)
|
|||
objprefix = "";
|
||||
if (eq(wd, "standard")) {
|
||||
std = 1;
|
||||
/*
|
||||
* If an entry is marked "mandatory", config will abort if it's
|
||||
* not called by a configuration line in the config file. Apart
|
||||
* from this, the device is handled like one marked "optional".
|
||||
*/
|
||||
} else if (eq(wd, "mandatory")) {
|
||||
mandatory = 1;
|
||||
} else if (!eq(wd, "optional")) {
|
||||
fprintf(stderr,
|
||||
"%s: \"%s\" %s must be optional, mandatory or standard\n",
|
||||
"%s: \"%s\" %s must be optional or standard\n",
|
||||
fname, wd, this);
|
||||
exit(1);
|
||||
}
|
||||
|
@ -526,11 +519,6 @@ read_file(char *fname)
|
|||
dp->d_done |= DEVDONE;
|
||||
goto nextparam;
|
||||
}
|
||||
if (mandatory) {
|
||||
fprintf(stderr, "%s: mandatory device \"%s\" not found\n",
|
||||
fname, wd);
|
||||
exit(1);
|
||||
}
|
||||
if (std) {
|
||||
fprintf(stderr,
|
||||
"standard entry %s has a device keyword - %s!\n",
|
||||
|
|
Loading…
Reference in a new issue