Task #118705 - fixed.err

back to task #118705
download
Error: COMPILER_WARNING (CWE-704):
augeas-f4135e3496fbc80597942acf60d90391444b1e5b/src/augeas.c: scope_hint: In function 'aug_transform'
augeas-f4135e3496fbc80597942acf60d90391444b1e5b/src/augeas.c:1812:12: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 1812 |     if ((p = strrchr(lens, '.'))) {
#      |            ^
# 1810|       ARG_CHECK(STREQ("", file), aug, "aug_transform: FILE must not be empty");
# 1811|   
# 1812|->     if ((p = strrchr(lens, '.'))) {
# 1813|           lensname = strdup(lens);
# 1814|           xfmname = strndup(lens, p - lens);

Error: COMPILER_WARNING (CWE-704):
augeas-f4135e3496fbc80597942acf60d90391444b1e5b/src/augeas.c:1812:12: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 1810|       ARG_CHECK(STREQ("", file), aug, "aug_transform: FILE must not be empty");
# 1811|   
# 1812|->     if ((p = strrchr(lens, '.'))) {
# 1813|           lensname = strdup(lens);
# 1814|           xfmname = strndup(lens, p - lens);

Error: COMPILER_WARNING:
augeas-f4135e3496fbc80597942acf60d90391444b1e5b/src/augprint.c: scope_hint: In function ‘quote_value’
augeas-f4135e3496fbc80597942acf60d90391444b1e5b/src/augprint.c:1254:7: warning[-Wunused-but-set-variable=]: variable ‘has_special’ set but not used
# 1254 |   int has_special=0;
#      |       ^~~~~~~~~~~
# 1252|     int has_q=0;
# 1253|     int has_qq=0;
# 1254|->   int has_special=0;
# 1255|     int has_nl=0;
# 1256|     int new_len;

Error: COMPILER_WARNING (CWE-704):
augeas-f4135e3496fbc80597942acf60d90391444b1e5b/src/augtool.c: scope_hint: In function ‘readline_path_generator’
augeas-f4135e3496fbc80597942acf60d90391444b1e5b/src/augtool.c:105:17: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
#  105 |     char *end = strrchr(text, SEP);
#      |                 ^~~~~~~
#  103|       static char *ctx = NULL;
#  104|   
#  105|->     char *end = strrchr(text, SEP);
#  106|       if (end != NULL)
#  107|           end += 1;

Error: COMPILER_WARNING (CWE-704):
augeas-f4135e3496fbc80597942acf60d90391444b1e5b/src/augtool.c:105:17: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
#  103|       static char *ctx = NULL;
#  104|   
#  105|->     char *end = strrchr(text, SEP);
#  106|       if (end != NULL)
#  107|           end += 1;

Error: COMPILER_WARNING (CWE-704):
augeas-f4135e3496fbc80597942acf60d90391444b1e5b/src/fa.c: scope_hint: In function 'print_char'
augeas-f4135e3496fbc80597942acf60d90391444b1e5b/src/fa.c:4480:15: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type
# 4480 |     char *p = strchr(escape_from, c);
#      |               ^~~~~~
# 4478|       static const char *const escape_from = " \n\t\v\b\r\f\a/\0";
# 4479|       static const char *const escape_to = "sntvbrfa/0";
# 4480|->     char *p = strchr(escape_from, c);
# 4481|       if (p != NULL) {
# 4482|           int i = p - escape_from;

Error: COMPILER_WARNING (CWE-704):
augeas-f4135e3496fbc80597942acf60d90391444b1e5b/src/fa.c:4480:15: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type
# 4478|       static const char *const escape_from = " \n\t\v\b\r\f\a/\0";
# 4479|       static const char *const escape_to = "sntvbrfa/0";
# 4480|->     char *p = strchr(escape_from, c);
# 4481|       if (p != NULL) {
# 4482|           int i = p - escape_from;

Error: COMPILER_WARNING (CWE-704):
augeas-f4135e3496fbc80597942acf60d90391444b1e5b/src/internal.c: scope_hint: In function 'escape'
augeas-f4135e3496fbc80597942acf60d90391444b1e5b/src/internal.c:227:28: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
#  227 |         if (text[i] && ((p = strchr(escape_chars, text[i])) != NULL)) {
#      |                            ^
#  225|       for (int i=0; i < cnt; i++) {
#  226|           char *p;
#  227|->         if (text[i] && ((p = strchr(escape_chars, text[i])) != NULL)) {
#  228|               *e++ = '\\';
#  229|               *e++ = escape_names[p - escape_chars];

Error: COMPILER_WARNING (CWE-704):
augeas-f4135e3496fbc80597942acf60d90391444b1e5b/src/internal.c:227:28: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
#  225|       for (int i=0; i < cnt; i++) {
#  226|           char *p;
#  227|->         if (text[i] && ((p = strchr(escape_chars, text[i])) != NULL)) {
#  228|               *e++ = '\\';
#  229|               *e++ = escape_names[p - escape_chars];

Error: COMPILER_WARNING:
augeas-f4135e3496fbc80597942acf60d90391444b1e5b/src/jmt.c:1539:12: warning[-Wunused-but-set-variable=]: variable 'count' set but not used
# 1539 |     size_t count, removed;
#      |            ^~~~~
# 1537|   static void collect(struct jmt *jmt) {
# 1538|       struct array worklist;
# 1539|->     size_t count, removed;
# 1540|       int r;
# 1541|   

Error: COMPILER_WARNING:
augeas-f4135e3496fbc80597942acf60d90391444b1e5b/src/jmt.c: scope_hint: In function 'collect'
augeas-f4135e3496fbc80597942acf60d90391444b1e5b/src/jmt.c:1539:19: warning[-Wunused-but-set-variable=]: variable 'removed' set but not used
# 1539 |     size_t count, removed;
#      |                   ^~~~~~~
# 1537|   static void collect(struct jmt *jmt) {
# 1538|       struct array worklist;
# 1539|->     size_t count, removed;
# 1540|       int r;
# 1541|   

Error: COMPILER_WARNING (CWE-704):
augeas-f4135e3496fbc80597942acf60d90391444b1e5b/src/lens.c: scope_hint: In function 'enc_format_indent'
augeas-f4135e3496fbc80597942acf60d90391444b1e5b/src/lens.c:1070:12: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 1070 |         eq = strchr(k, ENC_EQ_CH);
#      |            ^
# 1068|       while (*k && k - e < len) {
# 1069|           char *eq,  *slash, *v;
# 1070|->         eq = strchr(k, ENC_EQ_CH);
# 1071|           assert(eq != NULL);
# 1072|           slash = strchr(eq, ENC_SLASH_CH);

Error: COMPILER_WARNING (CWE-704):
augeas-f4135e3496fbc80597942acf60d90391444b1e5b/src/lens.c:1070:12: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 1068|       while (*k && k - e < len) {
# 1069|           char *eq,  *slash, *v;
# 1070|->         eq = strchr(k, ENC_EQ_CH);
# 1071|           assert(eq != NULL);
# 1072|           slash = strchr(eq, ENC_SLASH_CH);

Error: COMPILER_WARNING (CWE-704):
augeas-f4135e3496fbc80597942acf60d90391444b1e5b/src/lens.c:1092:12: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 1092 |         eq = strchr(k, ENC_EQ_CH);
#      |            ^
# 1090|       while (*k && k - e < len) {
# 1091|           char *eq,  *slash, *v;
# 1092|->         eq = strchr(k, ENC_EQ_CH);
# 1093|           slash = strchr(eq, ENC_SLASH_CH);
# 1094|           assert(eq != NULL && slash != NULL);

Error: COMPILER_WARNING (CWE-704):
augeas-f4135e3496fbc80597942acf60d90391444b1e5b/src/lens.c:1092:12: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 1090|       while (*k && k - e < len) {
# 1091|           char *eq,  *slash, *v;
# 1092|->         eq = strchr(k, ENC_EQ_CH);
# 1093|           slash = strchr(eq, ENC_SLASH_CH);
# 1094|           assert(eq != NULL && slash != NULL);

Error: COMPILER_WARNING (CWE-704):
augeas-f4135e3496fbc80597942acf60d90391444b1e5b/src/syntax.c: scope_hint: In function 'modname_of_qname'
augeas-f4135e3496fbc80597942acf60d90391444b1e5b/src/syntax.c:482:17: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type
#  482 |     char *dot = strchr(qname, '.');
#      |                 ^~~~~~
#  480|   
#  481|   static char *modname_of_qname(const char *qname) {
#  482|->     char *dot = strchr(qname, '.');
#  483|       if (dot == NULL)
#  484|           return NULL;

Error: COMPILER_WARNING (CWE-704):
augeas-f4135e3496fbc80597942acf60d90391444b1e5b/src/syntax.c:482:17: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type
#  480|   
#  481|   static char *modname_of_qname(const char *qname) {
#  482|->     char *dot = strchr(qname, '.');
#  483|       if (dot == NULL)
#  484|           return NULL;