When building with "clang -Wwrite-strings", the compiler reports the following warnings: direct_api.c:1030:46: error: passing 'const char [4]' to parameter of type 'char *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] status = semanage_direct_write_langext(sh, "cil", modinfo); ^~~~~ direct_api.c:898:11: note: passing argument to parameter 'lang_ext' here char *lang_ext, ^ direct_api.c:1030:46: error: passing 'const char [4]' to parameter of type 'char *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] status = semanage_direct_write_langext(sh, "cil", modinfo); ^~~~~ direct_api.c:898:11: note: passing argument to parameter 'lang_ext' here char *lang_ext, ^ Signed-off-by: Nicolas Iooss <nicolas.iooss@xxxxxxx> --- libsemanage/src/direct_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsemanage/src/direct_api.c b/libsemanage/src/direct_api.c index 742c54f037c7..c23494bb4270 100644 --- a/libsemanage/src/direct_api.c +++ b/libsemanage/src/direct_api.c @@ -895,7 +895,7 @@ cleanup: } static int semanage_direct_write_langext(semanage_handle_t *sh, - char *lang_ext, + const char *lang_ext, const semanage_module_info_t *modinfo) { int ret = -1; -- 2.11.0 _______________________________________________ Selinux mailing list Selinux@xxxxxxxxxxxxx To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx. To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.