]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
compiler: Add OptionFlags.NO_ARG to deprecated "--thread" option
authorRico Tzschichholz <ricotz@ubuntu.com>
Wed, 1 May 2019 15:37:07 +0000 (17:37 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Tue, 6 Aug 2019 11:52:09 +0000 (13:52 +0200)
It was defined with OptionArg.NONE and never took an extra argument.

Regression of d8e810680f370fac7e9a5e80f8d94316707625c2

compiler/valacompiler.vala

index 9680e6ae3290d5baefeacf4bbd2e22836f4f2b88..66f415d5262b86b1e89c81fd7400c1375e95f968 100644 (file)
@@ -125,7 +125,7 @@ class Vala.Compiler {
                { "compile", 'c', 0, OptionArg.NONE, ref compile_only, "Compile but do not link", null },
                { "output", 'o', 0, OptionArg.FILENAME, ref output, "Place output in file FILE", "FILE" },
                { "debug", 'g', 0, OptionArg.NONE, ref debug, "Produce debug information", null },
-               { "thread", 0, OptionFlags.OPTIONAL_ARG, OptionArg.CALLBACK, (void*) option_deprecated, "Enable multithreading support (DEPRECATED AND IGNORED)", null },
+               { "thread", 0, OptionFlags.OPTIONAL_ARG | OptionFlags.NO_ARG, OptionArg.CALLBACK, (void*) option_deprecated, "Enable multithreading support (DEPRECATED AND IGNORED)", null },
                { "enable-mem-profiler", 0, 0, OptionArg.NONE, ref mem_profiler, "Enable GLib memory profiler", null },
                { "define", 'D', 0, OptionArg.STRING_ARRAY, ref defines, "Define SYMBOL", "SYMBOL..." },
                { "main", 0, 0, OptionArg.STRING, ref entry_point, "Use SYMBOL as entry point", "SYMBOL..." },