diff options
-rw-r--r-- | meson.build | 1 | ||||
-rw-r--r-- | samples/client.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/meson.build b/meson.build index 753a463..03e9267 100644 --- a/meson.build +++ b/meson.build @@ -63,6 +63,7 @@ if get_option('warning_level') == '2' common_cflags += cc.get_supported_arguments([ '-Wno-missing-field-initializers', '-Wmissing-declarations', + '-Wwrite-strings', ]) endif diff --git a/samples/client.c b/samples/client.c index 492dd18..d1c699d 100644 --- a/samples/client.c +++ b/samples/client.c @@ -54,7 +54,7 @@ /* This is low, so we get testing of vfu_dma_read/write() chunking. */ #define CLIENT_MAX_DATA_XFER_SIZE (1024) -static char *irq_to_str[] = { +static char const *irq_to_str[] = { [VFU_DEV_INTX_IRQ] = "INTx", [VFU_DEV_MSI_IRQ] = "MSI", [VFU_DEV_MSIX_IRQ] = "MSI-X", @@ -947,7 +947,7 @@ migrate_to(char *old_sock_path, int *server_max_fds, if (ret > 0) { /* child (destination server) */ char *_argv[] = { path_to_server, - "-v", + (char *)"-v", sock_path, NULL }; |