X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-cli.git;a=blobdiff_plain;f=show.c;h=3ecb3194e2aa0c19060e39ff1288bc8eefb1e19b;hp=9adee6792098d066e8f9c84e61db5bf23cd2679d;hb=628197af18a8019eb9fd5d0aa280e7f4eca7f1ac;hpb=4ed1cdea40388d1888f073d51ebc484031fee3d9 diff --git a/show.c b/show.c index 9adee67..3ecb319 100644 --- a/show.c +++ b/show.c @@ -45,12 +45,14 @@ static gint sort_drivers(gconstpointer a, gconstpointer b) return strcmp(sdda->name, sddb->name); } +#ifdef HAVE_SRD static gint sort_pds(gconstpointer a, gconstpointer b) { const struct srd_decoder *sda = a, *sdb = b; return strcmp(sda->id, sdb->id); } +#endif void show_version(void) {