]> sigrok.org Git - sigrok-cli.git/blobdiff - show.c
configure.ac: Bump package version to 0.7.1.
[sigrok-cli.git] / show.c
diff --git a/show.c b/show.c
index c93a6be4c8c397bf7096857880bb17b9c6963f3e..533ab1e55d8c65a3d4277c2d9ce105f1e66a2482 100644 (file)
--- a/show.c
+++ b/show.c
@@ -94,6 +94,7 @@ void show_version(void)
        printf("  - SCPI backends: %s.\n", str);
        g_free(str);
 
+#ifdef HAVE_SRD
        printf("- libsigrokdecode %s/%s (rt: %s/%s).\n",
                SRD_PACKAGE_VERSION_STRING, SRD_LIB_VERSION_STRING,
                srd_package_version_string_get(), srd_lib_version_string_get());
@@ -116,6 +117,7 @@ void show_version(void)
        str = srd_buildinfo_host_get();
        printf("  - Host: %s.\n", str);
        g_free(str);
+#endif
 }
 
 void show_supported(void)
@@ -319,7 +321,7 @@ void show_dev_detail(void)
        GVariant *gvar_dict, *gvar_list, *gvar;
        gsize num_elements;
        double dlow, dhigh, dcur_low, dcur_high;
-       const uint64_t *uint64, p, q, low, high;
+       const uint64_t *uint64, p = 0, q = 0, low = 0, high = 0;
        uint64_t tmp_uint64, mask, cur_low, cur_high, cur_p, cur_q;
        GArray *opts;
        const int32_t *int32;