aboutsummaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
Diffstat (limited to 'samples')
-rw-r--r--samples/gpio-pci-idio-16.c2
-rw-r--r--samples/null.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/samples/gpio-pci-idio-16.c b/samples/gpio-pci-idio-16.c
index 04079af..c5976b7 100644
--- a/samples/gpio-pci-idio-16.c
+++ b/samples/gpio-pci-idio-16.c
@@ -44,7 +44,7 @@
#include "../lib/muser.h"
static void
-_log(void *pvt, char const *msg)
+_log(void *pvt, lm_log_lvl_t lvl __attribute__((unused)), char const *msg)
{
fprintf(stderr, "gpio: %s", msg);
}
diff --git a/samples/null.c b/samples/null.c
index db21953..2954da8 100644
--- a/samples/null.c
+++ b/samples/null.c
@@ -43,7 +43,7 @@
#include "../lib/muser.h"
static void
-null_log(void *pvt, char const *msg)
+null_log(void *pvt, lm_log_lvl_t lvl __attribute__((unused)), char const *msg)
{
fprintf(stderr, "%s", msg);
}