raster pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=0dab01b44dc886e62f3b9872d07d8d1b7938cd6d
commit 0dab01b44dc886e62f3b9872d07d8d1b7938cd6d Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com> Date: Wed May 26 04:41:02 2021 +0100 embryo - embryo_cc - silence some new gcc warnings - try 2 all warnings bar 1 fixed. my manual strncpy seems ot have an issue - commented out. --- src/bin/embryo/embryo_cc_sc1.c | 15 +++++++++++++-- src/bin/embryo/embryo_cc_sc5.scp | 2 +- src/bin/embryo/embryo_cc_sc7.scp | 2 +- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/src/bin/embryo/embryo_cc_sc1.c b/src/bin/embryo/embryo_cc_sc1.c index 8f25be75b5..de9417722e 100644 --- a/src/bin/embryo/embryo_cc_sc1.c +++ b/src/bin/embryo/embryo_cc_sc1.c @@ -3032,11 +3032,22 @@ insert_constval(constvalue * prev, constvalue * next, char *name, cell val, short idx) { constvalue *cur; +// char *s, *d; - if (!(cur = (constvalue *)malloc(sizeof(constvalue)))) + if (!(cur = calloc(1, sizeof(constvalue)))) error(103); /* insufficient memory (fatal error) */ - memset(cur, 0, sizeof(constvalue)); strncpy(cur->name, name, sizeof(cur->name) - 1); +// I'm forced to do the below as new gcc warnings I can't seem to shut up +// complain so implement in full to get some silence. +// for (d = cur->name, s = name; ; ) +// { +// *d++ = *s; +// if ((size_t)(s - name) < (size_t)(sizeof(cur->name) - 1)) +// { +// if (*s) s++; +// } +// else break; +// } cur->name[sizeof(cur->name) - 1] = 0; cur->value = val; cur->index = idx; diff --git a/src/bin/embryo/embryo_cc_sc5.scp b/src/bin/embryo/embryo_cc_sc5.scp index bf0a606dc8..2ff958fb4a 100644 --- a/src/bin/embryo/embryo_cc_sc5.scp +++ b/src/bin/embryo/embryo_cc_sc5.scp @@ -26,7 +26,7 @@ int strexpand(char *dest, unsigned char *source, int maxlen, #define SCPACK_TABLE errstr_table /*-*SCPACK start of pair table, do not change or remove this line */ -unsigned char errstr_table[][2] = { +unsigned char errstr_table[128][2] = { {101, 32}, {116, 32}, {111, 110}, {105, 110}, {97, 114}, {100, 32}, {105, 130}, {101, 114}, {101, 110}, {115, 32}, {97, 108}, {97, 116}, {117, 110}, {115, diff --git a/src/bin/embryo/embryo_cc_sc7.scp b/src/bin/embryo/embryo_cc_sc7.scp index 38f784d3cc..618a68fbd5 100644 --- a/src/bin/embryo/embryo_cc_sc7.scp +++ b/src/bin/embryo/embryo_cc_sc7.scp @@ -29,7 +29,7 @@ int strexpand(char *dest, unsigned char *source, int maxlen, #define SCPACK_TABLE sequences_table /*-*SCPACK start of pair table, do not change or remove this line */ -unsigned char sequences_table[][2] = { +unsigned char sequences_table[128][2] = { {32, 37}, {114, 105}, {112, 129}, {46, 130}, {49, 33}, {128, 132}, {97, 100}, {46, 97}, {135, 108}, {136, 116}, {111, 134}, {108, 138}, {50, 33}, {115, 104}, --