]> git.tuebingen.mpg.de Git - dss.git/commitdiff
Don't shadow cmdline_parser_params in main().
authorAndre Noll <maan@tuebingen.mpg.de>
Sun, 16 Apr 2017 11:25:10 +0000 (13:25 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 16 Apr 2017 11:25:10 +0000 (13:25 +0200)
This avoids

dss.c:1519:32: warning: declaration of 'params' shadows a previous local [-Wshadow]

The warning is harmless, though.

dss.c

diff --git a/dss.c b/dss.c
index 4c068c6c96443f44b15e5c78e5977dad83a4f36d..aa8c0ea3860086bd4ca9f22b8e8c2354c3f2cc3b 100644 (file)
--- a/dss.c
+++ b/dss.c
@@ -1516,7 +1516,6 @@ int main(int argc, char **argv)
                 * Parse the command line options again, but this time check
                 * that all required options are given.
                 */
                 * Parse the command line options again, but this time check
                 * that all required options are given.
                 */
-               struct cmdline_parser_params params;
                params.override = 1;
                params.initialize = 1;
                params.check_required = 1;
                params.override = 1;
                params.initialize = 1;
                params.check_required = 1;