aboutsummaryrefslogtreecommitdiff
path: root/samples/null.c
diff options
context:
space:
mode:
authorSwapnil Ingle <swapnil.ingle@nutanix.com>2020-11-12 05:08:04 -0500
committerSwapnil Ingle <swapnil.ingle@nutanix.com>2020-11-12 09:40:36 -0500
commitbc14a86815855af69141d4c6a44dbda24c270757 (patch)
tree5045e90fef5e9a2d7031b39b27afac499ad0cdf6 /samples/null.c
parentb0c8341d6fdd34988a3cdf20108b8eb64ba3cf55 (diff)
downloadlibvfio-user-bc14a86815855af69141d4c6a44dbda24c270757.zip
libvfio-user-bc14a86815855af69141d4c6a44dbda24c270757.tar.gz
libvfio-user-bc14a86815855af69141d4c6a44dbda24c270757.tar.bz2
Fix issues pointed by CFLAGS "-Wall -Werror -Wextra"
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
Diffstat (limited to 'samples/null.c')
-rw-r--r--samples/null.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/samples/null.c b/samples/null.c
index c00c984..2a16bf7 100644
--- a/samples/null.c
+++ b/samples/null.c
@@ -41,9 +41,10 @@
#include <string.h>
#include "../lib/muser.h"
+#include "../lib/muser_priv.h"
static void
-null_log(void *pvt, lm_log_lvl_t lvl __attribute__((unused)), char const *msg)
+null_log(UNUSED void *pvt, UNUSED lm_log_lvl_t lvl, char const *msg)
{
fprintf(stderr, "muser: %s", msg);
}