Displaying 1 result from an estimated 1 matches for "028bc1ee2".
Did you mean:
028bc1e
2017 Apr 19
0
[PATCH] daemon: Add an assertion to suppress a warning with GCC.
...wap.c: In function 'do_mkswap_U':
swap.c:62:9: error: argument 1 null where non-null expected [-Werror=nonnull]
if (strlen (label) > SWAP_LABEL_MAX) {
^~~~~~~~~~~~~~
---
daemon/swap.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/daemon/swap.c b/daemon/swap.c
index 028bc1ee2..fea4a9dcf 100644
--- a/daemon/swap.c
+++ b/daemon/swap.c
@@ -22,6 +22,7 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include <assert.h>
#include "guestfs_protocol.h"
#include "daemon.h"
@@ -58,6 +59,7 @@ do_mkswap (const char *...