[Bug c/57627] -Wsizeof-pointer-memaccess should make an exception for character types

2018-05-25 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57627 Martin Sebor changed: What|Removed |Added Keywords||diagnostic

[Bug c/57627] -Wsizeof-pointer-memaccess should make an exception for character types

2013-06-26 Thread harald at gigawatt dot nl
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57627 --- Comment #1 from Harald van Dijk harald at gigawatt dot nl --- I just realised the very similar example void f4(char *dst, char *src) { __builtin_memcpy(dst, src, sizeof(src)); } void f5(unsigned char *dst, unsigned char *src) {