]> sigrok.org Git - sigrok-cli.git/blobdiff - main.c
Fix various clang warnings.
[sigrok-cli.git] / main.c
diff --git a/main.c b/main.c
index e699d2f0e6d905b5ab06775c9c65f30bb54c7267..e4d321b51b0d8faa1a818ffae36586db2f9675c3 100644 (file)
--- a/main.c
+++ b/main.c
@@ -214,8 +214,6 @@ int main(int argc, char **argv)
                }
                if (register_pds(opt_pds, opt_pd_annotations) != 0)
                        goto done;
-               if (setup_pd_stack(opt_pds, opt_pd_annotations) != 0)
-                       goto done;
 
                /* Only one output type is ever shown. */
                if (opt_pd_binary) {
@@ -243,6 +241,8 @@ int main(int argc, char **argv)
 
        if (opt_version)
                show_version();
+       else if (opt_list_supported)
+               show_supported();
        else if (opt_input_format && opt_show)
                show_input();
        else if (opt_output_format && opt_show)