From: Zdenek Dohnal Date: Mon, 27 Nov 2023 09:05:55 +0000 (+0100) Subject: scheduler: Fix build failure on Linux with '-Werror -Wall' X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7b7ad8a485d656ab2bde9ee9becebac08d92e5e;p=thirdparty%2Fcups.git scheduler: Fix build failure on Linux with '-Werror -Wall' The string which we add into array stays `const` after fixing #814 (because `strdup()`, which caused memory leak returned `char *`) and compiler fails because of it if it runs with '-Werror -Wall'. --- diff --git a/scheduler/colorman.c b/scheduler/colorman.c index cbdd717209..e873c33737 100644 --- a/scheduler/colorman.c +++ b/scheduler/colorman.c @@ -1014,7 +1014,7 @@ colord_create_profile( DBusError error; /* D-Bus error */ char *idstr; /* Profile ID string */ size_t idstrlen; /* Profile ID allocated length */ - const char *profile_path; /* Device object path */ + char *profile_path; /* Device object path */ char format_str[1024]; /* Qualifier format as a string */