From 4fb087c731af5282dc817bfc8350afe325eef532 Mon Sep 17 00:00:00 2001 From: rbuj Date: Thu, 5 Sep 2019 12:02:59 +0200 Subject: =?UTF-8?q?Initialization=20discards=20=E2=80=98const=E2=80=99=20q?= =?UTF-8?q?ualifier=20from=20pointer=20target=20type=20Remove=20317=20warn?= =?UTF-8?q?ings=20[-Wdiscarded-qualifiers].?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/fr-command-tar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/fr-command-tar.c') diff --git a/src/fr-command-tar.c b/src/fr-command-tar.c index 0c17433..62c77a9 100644 --- a/src/fr-command-tar.c +++ b/src/fr-command-tar.c @@ -1102,7 +1102,7 @@ fr_command_tar_get_capabilities (FrCommand *comm, capabilities |= FR_COMMAND_CAN_READ_WRITE; } else if (is_mime_type (mime_type, "application/x-7z-compressed-tar")) { - char *try_command[3] = { "7za", "7zr", "7z" }; + const char *try_command[3] = { "7za", "7zr", "7z" }; size_t i; for (i = 0; i < G_N_ELEMENTS (try_command); i++) { @@ -1126,7 +1126,7 @@ fr_command_tar_set_mime_type (FrCommand *comm, FR_COMMAND_CLASS (parent_class)->set_mime_type (comm, mime_type); if (is_mime_type (mime_type, "application/x-7z-compressed-tar")) { - char *try_command[3] = { "7za", "7zr", "7z" }; + const char *try_command[3] = { "7za", "7zr", "7z" }; size_t i; for (i = 0; i < G_N_ELEMENTS (try_command); i++) { -- cgit v1.2.1