git: ee0299e5f300 - main - units: Remove set but unused variable.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 20 Jun 2023 16:29:19 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=ee0299e5f300cbc2ab48c1fe44db0325b40d19a3 commit ee0299e5f300cbc2ab48c1fe44db0325b40d19a3 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2023-06-20 16:28:59 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2023-06-20 16:28:59 +0000 units: Remove set but unused variable. Reported by: GCC --- usr.bin/units/units.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/usr.bin/units/units.c b/usr.bin/units/units.c index b222ade449df..88363e2e6c34 100644 --- a/usr.bin/units/units.c +++ b/usr.bin/units/units.c @@ -763,11 +763,9 @@ main(int argc, char **argv) EditLine *el; HistEvent ev; int inputsz; - char const * history_file; quiet = false; readfile = false; - history_file = NULL; outputformat = numfmt; quit = false; while ((optchar = getopt_long(argc, argv, "+ehf:o:qtvH:UV", longopts, NULL)) != -1) { @@ -783,7 +781,7 @@ main(int argc, char **argv) readunits(optarg); break; case 'H': - history_file = optarg; + /* Ignored, for compatibility with GNU units. */ break; case 'q': quiet = true;