mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-13 16:27:39 -04:00
dtc: Remove unused check variable
Commit 376ab6f2
removed the old style check functionality from DTC,
however the check option and variable were not removed. This leads to
build failures when -Werror=unused-but-set-variable is specified:
dtc.c: In function 'main':
dtc.c:102:17: error: variable 'check' set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make: *** [dtc.o] Error 1
make: *** Waiting for unfinished jobs....
Remove the check variable.
Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
bc895d6d09
commit
0a5aca98ba
1 changed files with 2 additions and 5 deletions
7
dtc.c
7
dtc.c
|
@ -99,7 +99,7 @@ int main(int argc, char *argv[])
|
||||||
const char *inform = "dts";
|
const char *inform = "dts";
|
||||||
const char *outform = "dts";
|
const char *outform = "dts";
|
||||||
const char *outname = "-";
|
const char *outname = "-";
|
||||||
int force = 0, check = 0, sort = 0;
|
int force = 0, sort = 0;
|
||||||
const char *arg;
|
const char *arg;
|
||||||
int opt;
|
int opt;
|
||||||
FILE *outf = NULL;
|
FILE *outf = NULL;
|
||||||
|
@ -111,7 +111,7 @@ int main(int argc, char *argv[])
|
||||||
minsize = 0;
|
minsize = 0;
|
||||||
padsize = 0;
|
padsize = 0;
|
||||||
|
|
||||||
while ((opt = getopt(argc, argv, "hI:O:o:V:R:S:p:fcqb:vH:s")) != EOF) {
|
while ((opt = getopt(argc, argv, "hI:O:o:V:R:S:p:fqb:vH:s")) != EOF) {
|
||||||
switch (opt) {
|
switch (opt) {
|
||||||
case 'I':
|
case 'I':
|
||||||
inform = optarg;
|
inform = optarg;
|
||||||
|
@ -137,9 +137,6 @@ int main(int argc, char *argv[])
|
||||||
case 'f':
|
case 'f':
|
||||||
force = 1;
|
force = 1;
|
||||||
break;
|
break;
|
||||||
case 'c':
|
|
||||||
check = 1;
|
|
||||||
break;
|
|
||||||
case 'q':
|
case 'q':
|
||||||
quiet++;
|
quiet++;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue