Skip to content

Commit

Permalink
Fix build when using --without-libsigrokdecode.
Browse files Browse the repository at this point in the history
  • Loading branch information
uwehermann committed Jun 6, 2017
1 parent 443ccd3 commit 3f85a61
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions session.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ void datafeed_in(const struct sr_dev_inst *sdi,
uint64_t input_len;
struct sr_dev_driver *driver;

/* Avoid warnings when building without decoder support. */
(void)session;
(void)input_len;

driver = sr_dev_inst_driver_get(sdi);

/* If the first packet to come in isn't a header, don't even try. */
Expand Down
2 changes: 2 additions & 0 deletions show.c
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -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)
Expand Down

0 comments on commit 3f85a61

Please sign in to comment.