On Tuesday 18 January 2005 02:35, Alexey Dobriyan wrote:

> * Use getopt_long_only().
> * Mark handle_* functions as static.
> * Support for easy adding new command line options rests in place.

Incremental patch to shut up "unrecognized option" warnings.

--- 1.1233-getopt/lib.c 2005-01-18 02:26:45.000000000 +0200
+++ 1.1233-getopt-1/lib.c       2005-01-18 02:52:57.000000000 +0200
@@ -554,6 +554,7 @@ struct symbol_list *sparse(int argc, cha
        // Initialize symbol stream first, so that we can add defines etc
        init_symbols();
 
+       opterr = 0;
        while ((c = getopt_long_only(argc, argv, "D:I:o:U:",
                                        long_options, NULL)) != -1)
                switch (c) {
-
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to