Task #341 - fixed.err

back to task #341
download
Error: COMPILER_WARNING (CWE-704):
cups-2.4.7-build/cups-2.4.7/scheduler/colorman.c: scope_hint: In function ‘colord_create_profile’
cups-2.4.7-build/cups-2.4.7/scheduler/colorman.c:1083:26: warning[-Wdiscarded-qualifiers]: passing argument 2 of ‘cupsArrayAdd’ discards ‘const’ qualifier from pointer target type
# 1083 |   cupsArrayAdd(profiles, profile_path);
#      |                          ^~~~~~~~~~~~
cups-2.4.7-build/cups-2.4.7/cups/array-private.h:16: included_from: Included from here.
cups-2.4.7-build/cups-2.4.7/cups/cups-private.h:20: included_from: Included from here.
cups-2.4.7-build/cups-2.4.7/scheduler/cupsd.h:18: included_from: Included from here.
cups-2.4.7-build/cups-2.4.7/scheduler/colorman.c:42: included_from: Included from here.
cups-2.4.7-build/cups-2.4.7/cups/array.h:50:61: note: expected ‘void *’ but argument is of type ‘const char *’
#   50 | extern int              cupsArrayAdd(cups_array_t *a, void *e) _CUPS_API_1_2;
#      |                                                       ~~~~~~^
# 1081|     dbus_message_iter_get_basic(&args, &profile_path);
# 1082|     cupsdLogMessage(CUPSD_LOG_DEBUG, "Created profile \"%s\".", profile_path);
# 1083|->   cupsArrayAdd(profiles, profile_path);
# 1084|   
# 1085|   out: