X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-cli.git;a=blobdiff_plain;f=show.c;h=533ab1e55d8c65a3d4277c2d9ce105f1e66a2482;hp=c93a6be4c8c397bf7096857880bb17b9c6963f3e;hb=81f781288ab8ce19c46d2f090a16428d28fe0435;hpb=b5e7f00b51b0cf5dfda10717202f6fa12611d0d9 diff --git a/show.c b/show.c index c93a6be..533ab1e 100644 --- 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;