>notmuch-insert.c:136:11: error: assigning to 'char *' from 'const char *'
>      discards qualifiers
>      [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
>  136 |     slash = strrchr (path, '/');
>      |           ^ ~~~~~~~~~~~~~~~~~~~

Signed-off-by: Nicolas PARLANT <[email protected]>
---
 notmuch-insert.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/notmuch-insert.c b/notmuch-insert.c
index e44607ad..104be0fa 100644
--- a/notmuch-insert.c
+++ b/notmuch-insert.c
@@ -115,7 +115,7 @@ mkdir_recursive (const void *ctx, const char *path, int 
mode)
 {
     struct stat st;
     int r;
-    char *parent = NULL, *slash;
+    const char *parent = NULL, *slash;
 
     /* First check the common case: directory already exists. */
     r = stat (path, &st);
-- 
2.52.0

_______________________________________________
notmuch mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to