Changeset: ffc86c707e53 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/ffc86c707e53 Modified Files: common/utils/mstring.h Branch: default Log Message:
I can't seem to tell GCC 11 (on Fedora 34) that the code is actually ok. diffs (19 lines): diff --git a/common/utils/mstring.h b/common/utils/mstring.h --- a/common/utils/mstring.h +++ b/common/utils/mstring.h @@ -35,6 +35,7 @@ strcpy_len(char *restrict dst, const cha * --enable-strict, so we just use the (more) expensive way of getting the * right answer (rescan the whole string) */ #if !defined(__GNUC__) || __GNUC__ > 7 || (__GNUC__ == 7 && __GNUC_MINOR__ > 5) +#if __GNUC__ < 11 /* This code is correct, but GCC gives a warning in certain * conditions, so we disable the warning temporarily. * The warning happens e.g. in @@ -50,6 +51,7 @@ GCC_Pragma("GCC diagnostic ignored \"-Wa return n + strlen(src + n); GCC_Pragma("GCC diagnostic pop") #endif +#endif } return strlen(src); } _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list