Task #130598 - fixed.err
back to task #130598download
Error: COMPILER_WARNING (CWE-704):
alsa-lib-1.2.15.3/src/conf.c: scope_hint: In function 'snd_config_hook_load_for_all_cards'
alsa-lib-1.2.15.3/src/conf.c:4446:51: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type
# 4446 | char *s = strchr(driver, '.');
# | ^~~~~~
# 4444| }
# 4445| while (1) {
# 4446|-> char *s = strchr(driver, '.');
# 4447| if (s == NULL)
# 4448| break;
Error: COMPILER_WARNING (CWE-704):
alsa-lib-1.2.15.3/src/conf.c:4446:51: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type
# 4444| }
# 4445| while (1) {
# 4446|-> char *s = strchr(driver, '.');
# 4447| if (s == NULL)
# 4448| break;
Error: COMPILER_WARNING (CWE-704):
alsa-lib-1.2.15.3/src/seq/seqmid.c: scope_hint: In function 'snd_seq_parse_address'
alsa-lib-1.2.15.3/src/seq/seqmid.c:449:24: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 449 | if ((p = strpbrk(arg, ":.")) != NULL) {
# | ^
# 447| }
# 448| } else {
# 449|-> if ((p = strpbrk(arg, ":.")) != NULL) {
# 450| if ((port = atoi(p + 1)) < 0)
# 451| return -EINVAL;
Error: COMPILER_WARNING (CWE-704):
alsa-lib-1.2.15.3/src/seq/seqmid.c:449:24: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 447| }
# 448| } else {
# 449|-> if ((p = strpbrk(arg, ":.")) != NULL) {
# 450| if ((port = atoi(p + 1)) < 0)
# 451| return -EINVAL;
Error: COMPILER_WARNING (CWE-704):
alsa-lib-1.2.15.3/src/ucm/main.c: scope_hint: In function 'snd_use_case_get_list'
alsa-lib-1.2.15.3/src/ucm/main.c:2396:22: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 2396 | str1 = strchr(identifier, '/');
# | ^
# 2394| err = get_enabled_modifier_list(uc_mgr, list);
# 2395| else {
# 2396|-> str1 = strchr(identifier, '/');
# 2397| if (str1) {
# 2398| str = strdup(str1 + 1);
Error: COMPILER_WARNING (CWE-704):
alsa-lib-1.2.15.3/src/ucm/main.c:2396:22: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 2394| err = get_enabled_modifier_list(uc_mgr, list);
# 2395| else {
# 2396|-> str1 = strchr(identifier, '/');
# 2397| if (str1) {
# 2398| str = strdup(str1 + 1);
Error: COMPILER_WARNING (CWE-704):
alsa-lib-1.2.15.3/src/ucm/main.c: scope_hint: In function 'snd_use_case_geti'
alsa-lib-1.2.15.3/src/ucm/main.c:2721:22: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 2721 | str1 = strchr(identifier, '/');
# | ^
# 2719| /* nothing here - prepared for fixed identifiers */
# 2720| } else {
# 2721|-> str1 = strchr(identifier, '/');
# 2722| if (str1) {
# 2723| str = strdup(str1 + 1);
Error: COMPILER_WARNING (CWE-704):
alsa-lib-1.2.15.3/src/ucm/main.c:2721:22: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 2719| /* nothing here - prepared for fixed identifiers */
# 2720| } else {
# 2721|-> str1 = strchr(identifier, '/');
# 2722| if (str1) {
# 2723| str = strdup(str1 + 1);
Error: COMPILER_WARNING (CWE-704):
alsa-lib-1.2.15.3/src/ucm/main.c: scope_hint: In function 'snd_use_case_set'
alsa-lib-1.2.15.3/src/ucm/main.c:3038:22: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 3038 | str1 = strchr(identifier, '/');
# | ^
# 3036| err = set_modifier_user(uc_mgr, value, 0);
# 3037| else {
# 3038|-> str1 = strchr(identifier, '/');
# 3039| if (str1) {
# 3040| str = strdup(str1 + 1);
Error: COMPILER_WARNING (CWE-704):
alsa-lib-1.2.15.3/src/ucm/main.c:3038:22: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 3036| err = set_modifier_user(uc_mgr, value, 0);
# 3037| else {
# 3038|-> str1 = strchr(identifier, '/');
# 3039| if (str1) {
# 3040| str = strdup(str1 + 1);
Error: COMPILER_WARNING (CWE-704):
alsa-lib-1.2.15.3/src/ucm/ucm_subs.c: scope_hint: In function 'strchr_with_escape'
alsa-lib-1.2.15.3/src/ucm/ucm_subs.c:832:19: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 832 | s = strchr(str, c);
# | ^
# 830|
# 831| while (1) {
# 832|-> s = strchr(str, c);
# 833| if (s && s != str) {
# 834| if (*(s - 1) == '\\') {
Error: COMPILER_WARNING (CWE-704):
alsa-lib-1.2.15.3/src/ucm/ucm_subs.c:832:19: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 830|
# 831| while (1) {
# 832|-> s = strchr(str, c);
# 833| if (s && s != str) {
# 834| if (*(s - 1) == '\\') {