Reported by scan-build:
src/input/logicport.c:1186:18: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
.format_match = format_match,
^~~~~~~~~~~~
return SR_OK;
}
-static int format_match(GHashTable *metadata)
+static int format_match(GHashTable *metadata, unsigned int *confidence)
{
GString *buf, *tmpbuf;
int rc;
if (rc == SR_OK && version && build) {
sr_dbg("Looks like a LogicProbe project, version %s, build %s.",
version, build);
+ *confidence = 1;
}
g_string_free(tmpbuf, TRUE);