Task #130840 - fixed.err
back to task #130840download
Error: COMPILER_WARNING (CWE-704):
editorconfig-core-c-0.12.10/src/lib/editorconfig.c: scope_hint: In function ‘split_file_path’
editorconfig-core-c-0.12.10/src/lib/editorconfig.c:291:23: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
# 291 | char* path_char = strrchr(absolute_path, '/');
# | ^~~~~~~
# 289| const char* absolute_path)
# 290| {
# 291|-> char* path_char = strrchr(absolute_path, '/');
# 292|
# 293| if (path_char == NULL) {
Error: COMPILER_WARNING (CWE-704):
editorconfig-core-c-0.12.10/src/lib/editorconfig.c:291:23: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
# 289| const char* absolute_path)
# 290| {
# 291|-> char* path_char = strrchr(absolute_path, '/');
# 292|
# 293| if (path_char == NULL) {
Error: COMPILER_WARNING:
editorconfig-core-c-0.12.10/src/lib/ini.c: scope_hint: In function ‘ini_parse_file’
editorconfig-core-c-0.12.10/src/lib/ini.c:93:5: warning[-Wstringop-truncation]: ‘strncpy’ specified bound 4097 equals destination size
# 93 | strncpy(dest, src, size);
# | ^
# 91| static char* strncpy0(char* dest, const char* src, size_t size)
# 92| {
# 93|-> strncpy(dest, src, size);
# 94| dest[size - 1] = '\0';
# 95| return dest;